Dump CL Program (DMPCLPGM)

Where allowed to run:
  • Batch program (*BPGM)
  • Interactive program (*IPGM)
Threadsafe: Yes
Parameters
Examples
Error messages

The Dump CL Program (DMPCLPGM) command dumps variables (used in the CL program in which the command is processed) and all messages on the program's message queue to a spooled printer file (QPPGMDMP).

There are no parameters for this command.

Top

Parameters

None
Top

Examples

PGM
DCL . . .
DCL . . .
MONMSG  MSGID(CPF9999)  EXEC(GOTO DUMP)
:
RETURN
DUMP:  DMPCLPGM
ENDPGM

This CL procedure monitors for the function check message CPF9999. If a function check occurs in the procedure, control is passed to the command at label DUMP. This causes a dump of the program's message queue and causes the procedure's variables to be printed. This dump can be used to determine the cause of the function check.

Top

Error messages

*ESCAPE Messages

CPF0570
Unable to dump CL program &1 in &2.
Top