900-SUBMIT-JOB
900-SUBMIT-JOB
submits an existing
batch job to the Lawson Job Scheduler. 900-SUBMIT-JOB
uses the JOBWS
fields instead of the JOBREQ
fields because most of the fields in JOBREQ
are not needed to submit an existing job, and it
would be inefficient to pass data that never gets used.
To use the 900-SUBMIT-JOB routine
-
Populate the user name and job name fields.
-
Perform 900-SUBMIT-JOB .
Library
|
JOBRTNS |
Unused Fields | (None) |
Output | Submits the batch job to the Job Scheduler |
Required Fields
Field | Type and length | Definition |
---|---|---|
WSJR-USER-NAME
|
A 10 | Case-sensitive user name used to define the job. |
WSJR-JOB-NAME
|
A 10 | Actual job name used to define the job. |
Optional Fields
Field | Type and length | Definition |
---|---|---|
WSJR-JOB-QUEUE
|
A 5 | Job queue you want to submit the job through. (If left blank, the default queue is used.) |
WSJR-START-DATE
|
N 8 | Date the job should start. (If left blank, the job starts now.) |
WSJR-START-TIME
|
N 6 | Time the job should start. (If left blank, the job starts now.) |
Return Value
Field | Type and length | Definition |
---|---|---|
WSJR-ERROR
|
A 1 |
Y = Call failed. N = Call successful. |
Programming Example
Submit a batch job.
|