Scheduling a batch job

To schedule batch jobs, you must use a third party scheduler such as CRON jobs on UNIX systems.

Almost every business application has requirements to run batch jobs at specified times, either on a repeating schedule or a one time basis. To use the batch processor to run certain jobs at exactly specified times or regular time intervals, schedule one of the following runbatch commands with a third party scheduler to start a new batch job:

runbatch.sh <Input URL> <Output URL> [<batch_ext> <batchLoadPropertyFile> <instance>]
This command enables you to start a batch job using the specified InputURL and OutputURL.
runbatch.sh
This command enables you to start a batch job chain with multiple files defined in the Batch.properties file.
runbatch.sh -job [-name <name] <job file 1> <job file 2> ... <job file n>
This command enables you to start a batch job or job chain using predefined job files.

When your business requirements call for running a long-run batch job at an exactly specified time and then stop the job at a later specified time, such as running a long-run batch job within a given time window, you can schedule any of the preceding commands to start a new batch job or job chain.

You can also restart a job with the following runbatch command at the beginning of the time window:

runbatch.sh <-restart | -restartWithErrors> <processId>
This command enables you to resume a stopped batch job or job chain with a given process ID. The stopped job will resume once the time window opens.

At the end of the time window, you can schedule the following command to stop the job gracefully:

runbatch.sh -stop <processId>
This command enables you to stop a batch job or job chain with a given process ID when the time window closes.

In addition, you can schedule the following command to run the next due job or job chain defined in the physical InfoSphere® MDM database. This form of command is normally scheduled in regular time intervals to run new jobs or job chains created through InfoSphere MDM transactions.

runbatch.sh null null
This command enables you to start a batch instance that will locate a candidate job or job chain in the InfoSphere MDM database, based on the due date associated with the job or job chain.