The automation program runs as a Java console program. The simplest way to run it is from a BAT file (Windows), or from a shell script (UNIX). See Sample Batch files and Shell scripts for samples that you can modify and use.
Note: If you run the automation program from a .bat file or shell script, the .bat file or shell script should be in the same directory as the automation jar file. And, the dependency jar files should be in ./lib/jars.
If you run the automation program from the command line, your current directory should be directory containing the automation jar file. And, the dependency jar files should be in ./lib/jars.
The automation program takes the following required parameters:
-server | specifies the full name or IP address of the metadata server. |
-port | specifies the port number of the metadata server (usually 8561). |
-user | specifies the Profitability Management user ID. |
-password | specifies the password for the user. |
-config | specifies the file name, or path and file name, of the XML configuration file that controls the operation being performed by the automation program: |
A log file, com.sas.profitability.client.automation.log, with details of the operation is written to the same directory in which the automation program, com.sas.solutions.profitability.client.automation.jar, is located.
The fact that the operation was performed, with a timestamp, is written to the audit log.