Troubleshooting
Problem
This document explains how to remove pending job logs from the IBM i5/OS.
Resolving The Problem
There is a useful API for every IBM i5/OS administrator. That API is Remove Pending Job Log (QWTRMVJL). It allows you to remove pending job logs (massively, if needed) from the i5/OS.
Note: Operational Assistance Cleanup will clean up pending job logs if Allow Automatic Cleanup is set to Y.
Rochester Support Center knowledgebase document N1014783, Jobs in Joblog Pending Status; however, Joblogs Are Not Being Created, provides a summary about how job logs are produced. To link to document N1014783 immediately, click here .
To use the QWTRMVJL API, do the following (this example removes every pending job log from the operating system):
1. | Sign on the operating system. |
2. | Examine the job tables. From the operating system command line type the following: DSPJOBTBL Press the Enter key and then press F11. |
3. | You will see something like the following: Display Job Tables SXXXXXXX 12/03/07 00:04:17 Permanent job structures: Temporary job structures: Initial . . . . : 30 Initial . . . . : 20 Additional . . . : 10 Additional . . . : 10 Available . . . : 3757 Available . . . : 66 Total . . . . . : 32061 Maximum . . . . : 485000 ------------------In-use Entries------------------ Job Output Job Log Table Active Queue Queue Pending 1 54 0 14744 1554 2 281 26 9100 2545 Bottom Press Enter to continue. F3=Exit F5=Refresh F11=Total entries F12=Cancel |
4. | From the operating system command line type the following: CALL PGM(QCMD) Press the Enter key. |
5. | Call the API. From the command entry command line type one of the following commands: CALL PGM(QWTRMVJL) PARM(X'0000002C000000005CC1D3D34040404040405CC1D3D34040 404040405CC1D3D340405CC1D3D3404040404040' 'RJLS0100' X'0000000000000000') or SBMJOB CMD(CALL PGM(QWTRMVJL) PARM(X'0000002C000000005CC1D3D34040404040405 CC1D3D34040404040405CC1D3D340405CC1D3D3404040404040' 'RJLS0100' X'00000000000000 00')) JOB(RMVJL) JOBQ(QTXTSRCH) Press the Enter key. The parameters in the example have the following values: CALL PGM(QWTRMVJL) PARM(X' 0000002C 44 - Length of job selection criteria - 44 00000000 0 - Days since job completion - 0 5CC1D3D3404040404040 *ALL – Job Name 5CC1D3D3404040404040 *ALL – User name 5CC1D3D34040 *ALL – Job Number 5CC1D3D3404040404040' *ALL – Job log output 'RJLS0100' X'0000000000000000') These parameters can be altered if you would like to specify other values. |
6. | After the API has finished its work, examine the job tables again. From the operating system command line, type the following: DSPJOBTBL Press the Enter key and then press the F11. |
7. | You will see something like the following: Display Job Tables SXXXXXXX 12/03/07 00:44:26 Permanent job structures: Temporary job structures: Initial . . . . : 30 Initial . . . . : 20 Additional . . . : 10 Additional . . . : 10 Available . . . : 7855 Available . . . : 66 Total . . . . . : 32061 Maximum . . . . : 485000 ------------------In-use Entries------------------ Job Output Job Log Table Active Queue Queue Pending 1 54 0 14744 0 2 281 27 9100 0 Bottom Press Enter to continue. F3=Exit F5=Refresh F11=Total entries F12=Cancel |
Note: If errors are encountered when running the API, diagnostic messages will be issued.
For further information about the Remove Pending Job Log (QWTRMVJL) API, review the information available at the following link:
http://publib.boulder.ibm.com/infocenter/iseries/v7r1m0/topic/apis/qwtrmvjl.htm
[{"Type":"MASTER","Line of Business":{"code":"LOB57","label":"Power"},"Business Unit":{"code":"BU058","label":"IBM Infrastructure w\/TPS"},"Product":{"code":"SWG60","label":"IBM i"},"Platform":[{"code":"PF012","label":"IBM i"}],"Version":"7.1.0"}]
Historical Number
471106462
Was this topic helpful?
Document Information
Modified date:
18 December 2019
UID
nas8N1018808