CL Command Reference - DMPJOB

CL Command List > DMPJOB Reference

Description:

The Dump Job (DMPJOB) command dumps the basic data structures, or specific calls of the current job or of the job being serviced as a result of the Start Service Job (STRSRVJOB) command. The information is dumped to a spooled printer file (QPSRVDMP) to be printed. If the user had specified SPOOL(*NO) on either the CHGPRTF command or the OVRPRTF command, then the output is not spooled but printed directly; and, if the printer is not available, then this command overrides the print job and spools the output. When the user specifies SPOOL(*NO) on one of the two commands above, the user must specify QPSRVDMP as the printer file. The dump includes formatted information about the specified programs, and dumps of specified operating system objects, system objects, and threads associated with the job.

Restrictions:

. This command is shipped with public *EXCLUDE authority.

. The following user profiles have private authorities to use the command:
¨C QPGMR
¨C QSYSOPR
¨C QSRV
¨C QSRVBAS


Examples:

Example 1: Dumping Programs

DMPJOB PGM((QGPL/UPDATE *FIRST) (PAYROLL/MASTER *ALL))
JOBARA(*ALL) ADROBJ(*NO)

This command dumps the first occurrence of QGPL/UPDATE in the call stack and all occurrences of PAYROLL/MASTER. The job structure areas are dumped.



Example 2: Dumping Entire Job Structure

DMPJOB

This command dumps the entire job structure.



Example 3: Dumping Lists of Called and Activated Programs

DMPJOB PGM(*NONE) JOBARA(*NONE)

This command dumps the lists of programs called and activated.



Example 4: Dumping Job Thread List and Information

DMPJOB PGM(*NONE) JOBARA(*NONE) JOBTHD(*YES)

This command dumps the list of the jobĄ¯s threads and their information.



Example 5: Dumping Only One Job ThreadĄ¯s Information

DMPJOB PGM(*NONE) JOBARA(*NONE) JOBTHD(*YES) SLTTHD(00000001)

This command dumps thread identifier 00000001 and its information.



Example 6: Dumping Only the Thread Call Stack

DMPJOB PGM(*NONE) JOBTHD(*THDSTK)

This command dumps only the jobĄ¯s threads call stack.