Dump CL Program (DMPCLPGM)

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.

Parameters

None

Examples

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

This CL program or ILE 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.

Error messages

*ESCAPE Messages

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