Command reference / job
DSPJOBLOG
Display Job Log
Shows commands and related messages for an active job whose job log has not yet been written, and for a job on a job queue that has not started processing. It is used to monitor a job's progress. The same function is available through the DSPJOB and WRKJOB commands. The QSYS2.JOBLOG_INFO table function returns similar information.
Allowed environments: *ALL.
Positional parameters: 2.
Restrictions
- You need *JOBCTL special authority, or the job must have the same user name as the user running DSPJOBLOG.
- To display the job log of a job with *ALLOBJ special authority, you need *ALLOBJ special authority or authorization to the All Object Job Log function in System i Navigator's Application Administration support. The CHGFCNUSG command with function ID QIBM_ACCESS_ALLOBJ_JOBLOG can change the list of users allowed to do this.
Parameters
JOB
Job name
Names the job whose job log is shown.
Suggested / special values:
*
*- The job in which this command is issued.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Job name
Job name
User
User
Number
Number
OUTPUT
Output
Says whether the output is displayed at the requesting workstation, printed with spooled output, or directed to a database file.
Allowed values:
*, *PRINT, *OUTFILE, *APIDFN
*- Displayed if requested by an interactive job, or printed with spooled output if requested by a batch job.
*PRINT- Printed with the job's spooled output.
*OUTFILE- Directed to the database file named in OUTFILE. Only valid if JOB(*) is specified; produces a primary output file only.
*APIDFN- Directed to database files previously prepared by the QMHCTLJL API. Valid only if JOB(*) is specified; OUTFILE and OUTMBR are not used, and both primary and secondary output files can be produced.
MSGF
Message file
Specifies how the message file used to format a predefined message is found.
Suggested / special values:
*MSG
*MSG- The message file found when the message was sent is used.
*LIBL- The library list of the job displaying the job log is used to locate and format the message file.
Qualified parts (object, then library; write LIBRARY/OBJECT)
Message file
Message file
Library
Library
Suggested / special values:
*LIBL, *CURLIB
Examples
DSPJOBLOG JOB(ANDERSON/PAYROLL) OUTPUT(*PRINT)
Produces a job log for job PAYROLL for user ANDERSON.
Generated from os/cl/catalog/DSPJOBLOG.json and os/cl/help/DSPJOBLOG.json.