The PROGRAMDUMP statement can be used to generate a program dump. After the dump is taken, the program continues and executes the next statement.
A program dump is an expanded listing of the internal stack as it existed when the dump was requested. Several options are available to specify which items of the stack are to be included in the dump.
<programdump statement>
── PROGRAMDUMP ─┬───────────────────────────────────────────┬──────────┤
│ ┌◄────────────── , ─────────────┐ │
└─ ( ─┴─┬─<programdump option>──────┬─┴─ ) ─┘
├─<arithmetic expression>───┤
└─<programdump destination>─┘
The information produced by the PROGRAMDUMP statement is written to the file specified by the TASKFILE task attribute of the program, unless the TODISK destination option is specified. See the discussion of the TODISK destination option later in this section.

