Executing osBatch starts a single-session Execution Environment. The rule specified by the RULE parameter is executed. When this rule is finished, the session ends and the Execution Environment exits. The exit code of the osBatch process is 0 unless the
$SETSESSIONEND tool is used to set the session exit code, or the session abends. If the session abends, the exit code is greater than 127.
An osBatch session normally creates an Execution Environment log file and a session log file, in install_path/log for Solaris and in install_path\log for Windows. The default name of the Execution Environment log file is EE.<configuration name>.<date>-<time>.log. The default name of the session log file is batch.<configuration name>.<date>-<time>. log. The value for <configuration name> is determined by the EENAME parameter for the Execution Environment log file, and the NAME parameter for the session log file.
While osBatch is setting up, it writes parameter syntax and validation error messages to the console and to
startup.<date>.log (for example, startup.04.24.log created on April 24). For example, the command line
osBatch aaa=bbb results in some console output, which also appears also in the log file, reporting that the parameter is invalid.
Session and Execution Environment parameters are used to control the behavior of a batch session. Refer to
TIBCO Object Service Broker Parameters for detailed information about parameters. The values can be assigned to the osBatch parameters from the following sources (in order of precedence):
Refer to TIBCO Object Service Broker Parameters for more information on parameters.
Since the command line has the highest precedence, the values of the specified parameters are used during the execution of the batch session. Other Execution Environment and session parameters can be set in their respective DEFAULT configurations.
This execution of osBatch assigns the same values to the DOB, USER, PASSWORD, RULE, SEARCH, BROWSE and LIBRARY parameters as in Example 1.
If the ee.prm and session.prm are set as in Example 2, all the parameters are set to the same values they are assigned in Example 2 with the exception of the Data Object Broker parameter. Since the command line has the highest precedence, it overrides the value assigned from the ee.prm parameter file.