Previous Topic

Next Topic

Book Contents

Book Index

Job command preprocessing

The commands in a job are run through a pre-processor searching for control instructions and variable replacement expressions before the job is created. This allows the command expressions to read and/or modify aspects of the job before it is submitted. Once this is done, a temporary command file is created and used by the job when it starts.

For example:

1) A variable named F1 contains the name of a file to copy. The variable F2 contains the destination name and folder. The following command will copy the contents from F1 to F2.

copy ((F1)) ((F2))

The schedule system will replace ((F1)) and ((F2)) with their corresponding values before creating the temporary command file and starting up the job.

2) A program always requests two inputs from the running command file. In the example below the command requests today's date and the constant 23

rem run the report
RUN REPORT
((DATE TODAY "MM/NN/YY"))
23

3) Check to see if a variable has been set, if not terminate the job.

((IF_BLANK JOB_DATA_VARIABLE))
rem Job_data_variable not set, will now exit
exit
((ENDIF))

In This Section

Variable types

General syntax rules

Single variables

Array variables

Job command examples

See Also

Advanced Job Interaction

Resources - Advanced job interaction

Using Variables in EnterpriseSCHEDULE

Prototypes - creating specialized jobs

Creating Prototype Jobs