Configuring the job status mapping policy
IBM Workload Scheduler calculates the status of an IBM Workload Scheduler job based on the PeopleSoft job Run Status and Distribution Status. In PeopleSoft, the run status monitors the running of the job until it reaches a final status; the distribution status monitors the status of the output of the job. If the final status of a PeopleSoft job is neither success nor warning, IBM Workload Scheduler ignores the distribution status and the IBM Workload Scheduler job status is ABEND.
If the final status of a PeopleSoft job
is success or warning, you can decide whether to use the distribution
status of the PeopleSoft job
when determining the status of the IBM Workload Scheduler job
by setting the PS_DISTSTATUS option in the options file:
Table 1 shows
the relationship between the run status, the distribution status,
and the IBM Workload Scheduler job
status. The return code associated with the status is shown in parentheses. IBM Workload Scheduler uses
this return code to evaluate the return code condition you specified
in the Return Code Mapping Expression field in the Properties
panel of the job definition. For more details about this field, refer
to the online help by clicking the "?" in the top-right corner of
the panel.
PeopleSoft job run status | PeopleSoft job distribution status | IBM Workload Scheduler job status |
---|---|---|
|
|
SUCC |
|
|
ABEND |
|
|
EXEC |
|
Any distribution status | ABEND |
Table 2 shows the
relationship between the PeopleSoft run
status and the IBM Workload Scheduler job
status. The return code associated with the status is shown in parentheses. IBM Workload Scheduler uses
this return code to evaluate the return code condition you specified
in the Return Code Mapping Expression field in the Properties
panel of the job definition. For more details about this field, refer
to the online help by clicking the "?" in the top-right corner of
the panel.
PeopleSoft final run status | IBM Workload Scheduler status |
---|---|
Cancel (1) | ABEND |
Delete (2) | ABEND |
Error (3) | ABEND |
Hold (4) | WAIT |
Queued (5) | WAIT |
Initiated (6) | INIT |
Processing (7) | EXEC |
Canceled (8) | ABEND |
Success (9) | SUCC |
No Success (10) | ABEND |
Pending (16) | EXEC |
Warning (17) | SUCC |
Blocked (18) | ABEND |
Restart (19) | ABEND |
Note: If IBM Workload Scheduler fails
to retrieve the status of the PeopleSoft job,
the IBM Workload Scheduler job
status is DONE.