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

Parameters

JOB Job name

Names the job whose job log is shown.

Type
*QUAL
Required
No
Default
*
Case
Uppercase

Suggested / special values: *

*
The job in which this command is issued.
Qualified parts (object, then library; write LIBRARY/OBJECT)

Job name Job name

Type
*NAME
Required
No
Length
10
Case
Uppercase

User User

Type
*NAME
Required
No
Length
10
Case
Uppercase

Number Number

Type
*CHAR
Required
No
Length
6
Case
Uppercase

OUTPUT Output

Says whether the output is displayed at the requesting workstation, printed with spooled output, or directed to a database file.

Type
*CHAR
Required
No
Default
*
Length
8
Case
Uppercase

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.

Type
*QUAL
Required
No
Default
*MSG
Case
Uppercase

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

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

Type
*NAME
Required
No
Default
*LIBL
Length
10
Case
Uppercase

Suggested / special values: *LIBL, *CURLIB

Examples

DSPJOBLOG JOB(ANDERSON/PAYROLL) OUTPUT(*PRINT)

Produces a job log for job PAYROLL for user ANDERSON.

IBM command documentation

Generated from os/cl/catalog/DSPJOBLOG.json and os/cl/help/DSPJOBLOG.json.