The Addcategory.java sample demonstrates the creation of a folder and is installed with the Reporting and Analysis and EPM Workspace SDK in Install Home\SDK\Samples\java. All folders in the path that do not exist in the system are created in the process.
user pwd host port catpath
java AddCategory username password saturn 6800 /Sales