Command reference / job

DMPJOB

Dump Job

Dumps the basic data structures of the current job, or of the job being serviced, to the printer file QPSRVDMP: job attributes, call stack, activation groups, open files, overrides, object and record locks, job structure areas, program storage views and job threads. The native LIC control blocks are not represented; the emulator's equivalent structures are shown and the program-storage view is labeled simulated.

Allowed environments: *ALL. Positional parameters: 0.

Parameters

PGM Program to dump

Specifies which programs on the call stack are dumped: *ALL, *NONE (only the lists of called and activated programs), or up to 10 qualified program names with a call level (*FIRST, *LAST, *ALL or a number).

Type
*ELEM
Required
No
Default
*ALL
List limit
10
Case
Uppercase

Suggested / special values: *ALL, *NONE

Elements in order

Program Program

Type
*QUAL
Required
No
Case
Uppercase
Qualified parts (object, then library; write LIBRARY/OBJECT)

Program Program

Type
*NAME
Required
No
Length
10
Case
Uppercase

Library Library

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

Suggested / special values: *ALL

Call level Call level

Type
*CHAR
Required
No
Default
*LAST
Length
10
Case
Uppercase

Suggested / special values: *LAST, *FIRST, *ALL

JOBARA Job structure areas

Specifies whether the job structure areas are dumped: work control block, library search list, job temporary library, local data area, spool control block, data management communications queue, service communication object, process definition template, process lock list and MI response queue.

Type
*CHAR
Required
No
Default
*ALL
Length
4
Case
Uppercase

Allowed values: *ALL, *NONE

*ALL
The job structure areas are dumped.
*NONE
The job structure areas are not dumped.

ADROBJ Objects referenced by address

Specifies whether objects addressed from the program storage of a dumped program are also dumped. This emulator shows the program object of each dumped call level.

Type
*CHAR
Required
No
Default
*NO
Length
4
Case
Uppercase

Allowed values: *YES, *NO

*YES
The addressed objects are dumped.
*NO
The addressed objects are not dumped.

JOBTHD Job threads

Specifies whether the list and information of the job's threads are dumped. The emulated job has one thread.

Type
*CHAR
Required
No
Default
*YES
Length
10
Case
Uppercase

Allowed values: *YES, *NO, *THDSTK

*YES
The thread list and information are dumped.
*NO
The thread list and information are not dumped.
*THDSTK
Only the thread call stack is dumped.

SLTTHD Thread ID to include

Specifies which thread identifiers are included: *ALL, or up to 20 hexadecimal thread identifiers. *SELECT would show a selection display and is not supported by this emulator.

Type
*CHAR
Required
No
Default
*ALL
Length
8
List limit
20
Case
Uppercase

Suggested / special values: *ALL, *SELECT

Examples

DMPJOB

Dumps the entire job structure with the default values.

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

Dumps the list of the job's threads and their information.

IBM command documentation

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