Previous Topic

Next Topic

Book Contents

Book Index

Auxilliary Command files

Two command files can be defined for a job.. The startup command file is a batch file that contains a series of commands that are to be executed before the job's own commands. The shutdown command file is executed afterwards. This is a useful place for operations that are common to all jobs (or a family of jobs).

By modifying your local default job you can have a common startup and shutdown command added automatically to each new job that you create.

To enter the startup and shutdown batch files

  1. Open the Job Properties page either by right clicking on the job in the layout window or in the tree view.
  2. Select the Settings tab.
  3. Enter the path and name of the batch file in the startup and shutdown fields.

To have the file start_job.bat execute at the beginning of each new job that you create use the following the command.

C:\> schedule create default/general=pre_com_file:start_job.bat

C:\> schedule create new_job

When NEW_JOB is initiated the temporary command file contains the following type of commands.

C:\> start_job

... job commands ...

Both the startup and the shutdown batch file should be set up in such a way as to always complete with a success status code. In this way the main procedure will always get a chance to do its work.

To include the actual contents of a startup and shutdown file in the temporary command, use a command of the following format:

C:\> schedule create default/general=pre_com_file:"I:myfile"

The "I" indicates that the contents of "myfile" are to be included into the temporary file that is submitted.

See Also

Job characteristics

Resource requirements

Startup window

Execution window

Job sets

Retry Limit

Access controls

Default job entry

Reports