Where allowed to run: All environments (*ALL) Threadsafe: Yes |
Parameters Examples Error messages |
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:
Top |
Keyword | Description | Choices | Notes |
---|---|---|---|
PGM | Program to dump | Single values: *ALL, *NONE Other values (up to 10 repetitions): Element list |
Optional |
Element 1: Program | Qualified object name | ||
Qualifier 1: Program | Name | ||
Qualifier 2: Library | Name, *ALL | ||
Element 2: Call level | Integer, *LAST, *FIRST, *ALL | ||
JOBARA | Job structure areas | *ALL, *NONE | Optional |
ADROBJ | Objects referenced by address | *YES, *NO | Optional |
JOBTHD | Job threads | *YES, *NO, *THDSTK | Optional |
SLTTHD | Thread ID to include | Single values: *ALL, *SELECT Other values (up to 20 repetitions): Hexadecimal value |
Optional |
Top |
Specifies which program to dump. Up to 10 programs can be specified.
Single values
Element 1: Program
Qualifier 1: Program
Qualifier 2: Library
Element 2: Call level
Top |
Specifies that the job structure areas of the process are dumped. Job structure areas consist of the following:
Top |
Specifies that objects addressed from the program storage of a program being dumped are also dumped. If *NONE is specified on the Program to dump (PGM) parameter, no addressed objects are dumped.
Top |
Specifies whether the list and information of the threads in the job is dumped.
Thread information consists of the following:
Top |
Specifies a list of up to twenty threads in the job whose information is to be included. If *NO is specified on the Job threads (JOBTHD) parameter, no threads are dumped.
Single values
Other values
Top |
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.
Top |
*ESCAPE Messages
Top |