1 | Job selection information | Input | Char(*) |
2 | Job selection format name | Input | Char(8) |
3 | Error code | I/O | Char(*) |
The Remove Pending Job Log (QWTRMVJL) API changes a completed job whose job log has not yet been written. The job messages are removed. The job log can no longer be produced or displayed.
If the spooled file action for the job specifies that spooled files are to be detached or if the only remaining spooled files for the job are in independent auxiliary storage pools (ASPs), the job is removed from the system.
Information that is used for selecting completed jobs for which pending job logs will be removed. See Format of Job Selection Information for a description on the layout of this parameter.
The format of the job selection information. The possible format names are:
RJLS0100 | See RJLS0100 Format for details on the job selection information. |
The structure in which to return error information. For the format of the structure, see Error Code Parameter.
The organization of the job selection information parameter is shown below. A description of the fields in the parameter follows the table.
Offset | Type | Field | |
---|---|---|---|
Dec | Hex | ||
0 | 0 | BINARY(4) | Length of job selection information |
4 | 4 | BINARY(4) | Days since job completion |
8 | 8 | CHAR(10) | Job name |
18 | 12 | CHAR(10) | User name |
28 | 1C | CHAR(6) | Job number |
34 | 22 | CHAR(10) | Job log output |
Days since job completion. The minimum number of days that the job log has been pending. This may be zero. This must be non-negative. Refer to Usage Notes before coding a zero for this field.
Job log output. One of the following special values:
*ALL | All completed jobs that have a pending job log, regardless of the value specified for the Job log output (LOGOUTPUT) job attribute. |
*PND | Only completed jobs that have a pending job log and that specify *PND for the Job log output (LOGOUTPUT) job attribute. |
Job name. A specific job name, a generic name, or one of the following special values:
*ALL | All completed jobs with the specified user name and job number, regardless of job name. |
Job number. A specific job number or one of the following special values:
*ALL | All completed jobs with the specified job name and user name, regardless of the job number. |
Length of job selection information. The length of the job selection information passed. Valid values are:
44 | All job selection information is required. |
User name. A specific user profile name, a generic name, or one of the following special values:
*ALL | All completed jobs with the specified job name and job number, regardless of the user name. |
Operational Assistant cleanup uses *ALL for the Job log output field when calling this API. The system keeps pending job logs and spooled job logs for the same number of days. To specify the value that Operational Assistant uses for the days since job completion, use the Job logs and system output (SYSPRT) parameter of the Change Cleanup (CHGCLNUP) command. This can also be changed by using "GO CLEANUP" from a command line and selecting option 1 to change cleanup options.
Message ID | Error Message Text |
---|---|
CPF1321 E | Job &1 user &2 job number &3 not found. |
CPF133C E | Job &3/&2/&1 not completed. |
CPF1344 E | Not authorized to control job &3/&2/&1. |
CPF24B4 E | Severe error while addressing parameter list. |
CPF3C21 E | Format name &1 is not valid. |
CPF3C3B E | Value for parameter &2 for API &1 not valid. |
CPF3CF1 E | Error code parameter not valid. |
CPF3CF2 E | Error(s) occurred during running of &1 API. |
CPF8100 E | All CPF81xx messages could be returned. xx is from 01 to FF. |
CPF9800 E | All CPF98xx messages could be signaled. xx is from 01 to FF. |
Top | Work Management APIs | APIs by category |