900-CREATE-JOB
900-CREATE-JOB
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 JOBREQ
group.
To create a job using the 900-CREATE-JOB routine
-
Populate all of the appropriate fields for the
JOBREQ
group. -
Populate the working storage parameter fields.
-
Move the entire parameter working storage to the
JOBSTP-PARAMS
field. -
Perform
900-CREATE-JOB
routine.
To update job parameters using the 900-CREATE-JOB routine
-
Use 900-LOAD-JOB to populate the
JOBREQ
group. -
Modify the necessary fields in the
JOBREQ
group. -
Perform 900-CREATE-JOB .
For an existing job, the 900-CREATE-JOB
routine modifies the steps defined in the JOBREQ
group and leaves any other pre-existing steps unchanged.
For example, if an existing job is defined with six steps in it, and 900-CREATE-JOB
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 JOBREQ-STEPS
occurrences, and the last two
steps of the existing job are left unchanged.
Users are encouraged to combine the 900-LOAD-JOB
routine and 900-CREATE-JOB
routine to modify existing single- and multiple-step jobs.
Library
|
JOBRTNS |
Output | The batch job is created. |