U@SUBMITJOB

U@SUBMITJOB submits an existing batch job to the Lawson Job Scheduler. U@SUBMITJOB uses the E@JOB fields instead of the E@JR fields because most of the fields in E@JR are not needed to submit an existing job, and it would be inefficient to pass data that never gets used.

To use the U@SUBMITJOB routine

  1. Populate the user name and job name fields.

  2. Perform U@SUBMITJOB.

Module JOBRTNS
Unused Fields (None)
Output Submits the batch job to the Job Scheduler

Required Fields

Field Type and length Definition
E@WSUSERNAME A 10 Case-sensitive user name used to define the job.
E@WSJOBNAME A 10 Actual job name used to define the job.

Optional Fields

Field Type and length Definition
E@WSJOBQUEUE A 5 Job queue you want to submit the job through. (If left blank, the default queue is used.)
E@WSSTARTDATE N 8 Date the job should start. (If left blank, the job starts now.)
E@WSSTARTTIME N 6 Time the job should start. (If left blank, the job starts now.)

Return Value

Field Type and length Definition
E@JRERROR A 1

Y = Call failed.

N = Call successful.

Programming Example

Submit a batch job.

     EVAL      E@WSUSERNAME   = 'LAWUSR1'
     EVAL      E@WSJOBNAME    = 'MO202JOB'
     CALLP     U@SUBMITJOB