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).
Suggested / special values:
*ALL, *NONE
Elements in order
Program
Program
Qualified parts (object, then library; write LIBRARY/OBJECT)
Program
Program
Library
Library
Suggested / special values:
*ALL
Call level
Call level
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.
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.
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.
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.
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.
Generated from os/cl/catalog/DMPJOB.json and os/cl/help/DMPJOB.json.