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

  1. Populate all of the appropriate fields for the E@JR group.

  2. Populate the working storage parameter fields.

  3. Move the entire parameter working storage to the E@JSPARAMS field.

  4. Perform U@CRTJOB routine.

To update job parameters using the U@CRTJOB routine

  1. Use U@LOADJOB to populate the E@JR group.

  2. Modify the necessary fields in the E@JR group.

  3. 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.