The following example analyzes and prints the program stack according to the value of the OPTION task attribute of the program:
PROGRAMDUMP
The following example analyzes and prints the basic information plus the contents of all arrays:
PROGRAMDUMP(ARRAYS)
The following example analyzes and prints the contents of arrays, value arrays, the base of the stack, the segment dictionary, referenced code segments, and files:
PROGRAMDUMP(ARRAYS,BASE,CODE,FILE)
The following example analyzes the maximum amount of information about the program stack. The program dump is written to the printer.
PROGRAMDUMP(ALL,TOPRINTER)
The following example analyzes and prints the program stack according to the value of DUMPPARAM:
PROGRAMDUMP(DUMPPARAM)
The following example is equivalent to the statement PROGRAMDUMP(FILES). This statement analyzes and prints the contents of files of the program.
PROGRAMDUMP(0 & 1 [10:1])
The following example analyzes the basic information plus the contents of all arrays and database stacks. The information is written to a disk file.
PROGRAMDUMP (ARRAYS,DBS,TODISK)
The following example analyzes the information specified in the OPTION word of the program because no program dump option was specified in the statement. The dump is written first to the disk file and then to the printer file.
PROGRAMDUMP (TODISK,TOPRINTER)

