U@CRTJOB
U@CRTJOB creates a job definition, updates the job parameters of an existing job, or both. The entire job, including every step and the parameters for every step, must be defined in the E@JR group.
To create a job using the U@CRTJOB routine
-
Populate all of the appropriate fields for the E@JR group.
-
Populate the working storage parameter fields.
-
Move the entire parameter working storage to the E@JSPARAMS field.
-
Perform U@CRTJOB routine.
To update job parameters using the U@CRTJOB routine
-
Use U@LOADJOB to populate the E@JR group.
-
Modify the necessary fields in the E@JR group.
-
Perform U@CRTJOB.
For an existing job, the U@CRTJOB routine modifies the steps defined in the E@JR group and leaves any other pre-existing steps unchanged. For example, if an existing job is defined with six steps in it, and U@CRTJOB is called with a four-step job definition, then the first four steps of the existing job are replaced with the information defined in the four E@JRSTEPS occurrences, and the last two steps of the existing job are left unchanged.
Users are encouraged to combine the U@LOADJOB routine and U@CRTJOB routine to modify existing single- and multiple-step jobs.
Module | JOBRTNS |
Output | The batch job is created. |