CL Command Reference - DSPJOBLOG
CL Command List > DSPJOBLOG Reference
Description:
The Display Job Log (DSPJOBLOG) command shows commands and related messages for a job that is still active when its job log has not been written. This command also shows commands for a job on a job queue that has not started processing.
This command is used to monitor the progress of a job.
Note: This function can also be accessed through the Display Job (DSPJOB) and Work with a Job (WRKJOB) commands.
Restrictions:
1. To display a job log, you must have job control (*JOBCTL) special authority, or the job must have the same user name as the user running the DSPJOBLOG command.
2. To display a job log for a job that has all object (*ALLOBJ) special authority, you must have *ALLOBJ special authority or be authorized to the All Object Job Log function of the OS/400 through iSeries Navigator¡¯s Application Administration support. The Change Function Usage (CHGFCNUSG) command, with a function ID of QIBM_ACCESS_ALLOBJ_JOBLOG, can also be used to change the list of users that are allowed to display a job log of a job with *ALLOBJ special authority.
Examples:
DSPJOBLOG JOB(ANDERSON/PAYROLL)
OUTPUT(*PRINT) This command produces a job log for job PAYROLL for user ANDERSON.