cjexecjob (Execute batch application)
Format
cjexecjob server-name [[Java-option]...]
Java-application-class-name
[[argument-passed-to-the-main-method]...]
cjexecjob [schedule-group-name] [-jobID job-ID]
[[Java-option]...]
Java-application-class-name
[[argument-passed-to-the-main-method]...]
Function
When not using the scheduling functionality, this command executes batch applications in the batch server with the specified server name.
When using the scheduling functionality, this command executes batch applications in the batch servers that are distributed by CTM. Note that if no batch server exists on which you can execute jobs, the batch applications will be kept waiting in the schedule queue.
You can specify maximum 1,024 bytes in arguments following Java-option.
A message is output when you run the cjexecjob command, and when you terminate the cjexecjob command. You can control the message output by the cjexecjob command using the batch.log.stdout.enabled key of usrconf.cfg (option definition file for batch applications).
The options of the cjexecjob command are specified in usrconf.cfg (option definition file for batch applications). The system properties are specified in usrconf.properties (user property file for batch applications). The directories in which usrconf.cfg (option definition file for batch applications) and usrconf.properties (user property file for batch applications) are saved will be searched in the following order:
# In the environment variable (CJBATCHUSRCONFDIR), you specify the directory as the absolute path.
If you specify more than one system properties for the same key, the system property specified last is given priority.
When the system properties of the same key are specified in different ways, the priority order is as follows:
Arguments
(Incorrect example)
cjexecjob com.hitachi.mypackage.MyBatchApp argA argB
(Correct example)
cjexecjob -jobID JOBID com.hitachi.mypackage.MyBatchApp argA argB
cjexecjob -D<name>=<value> com.hitachi.mypackage.MyBatchApp argA argB
Input examples
cjexecjob MyBatchServer com.hitachi.mypackage.MyBatchApp
cjexecjob JOBGROUP com.hitachi.mypackage.MyBatchApp
Return values
Notes