Directives
DUMP Display Variables
   
Format DUMP [ (chan) ] { * | OBJECT obj_id | level }

Where:

* If you use the asterisk as an argument, all levels are dumped.
chan Channel or logical file number of the file to receive the dump / output of all variables in use by the current program.
level Program level to dump (current level dumped if ommited). If the value is negative it is consider the relative number based on the current level (i.e. -1 will dump the level that 'Called' the current program).
Object Oriented Programming (OOP) -
OBJECT Keyword to request a dump of an active object.
obj_id Object identifier of the object.
Description Use the DUMP directive to get a listing of all variables in use by the current program/object. The output is sent to the specified file number. If you omit the file number, the console, file (0), is the default. The output includes the value of the system variable ERR, the current program name, line number, the FOR/NEXT-GOSUB/RETURN stack, and all variables.
   
Example Examples The following illustrates the use of DUMP for listing variables in a program:

->DUMP
! ERR=0, CTL=0, RET=2
! Level=1
! PGN="C:\OTHER\PGMS\PVX\PVX_TESTS"
A$=$000000$+"T0 "+$0F0000000000000000$+"*"+$0100000700$+"CON
"+$0000$+"P"+$190100000000$+"P"+$190000$+"P"+$190000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000000000000000000000
0000000000000000000000000000000000000000000000000000000$+"WINDOWS
" CUST$="<*> IOLIST NAME$,ADR1$,ADR2$"
CUST.ADR1$="123 SOME ST." CUST.ADR2$="ANYTOWN SK S0M 0V0" CUST.NAME$="M MOUSE" DT$="04/01/99"

F$="abcd" R$="ab"
X$="M MOUSE"+SEP+"123 SOME ST."+SEP+"ANYTOWN SK S0M 0V0"+SEP
%NORM_SCR$=ESC+"F7"+ESC+"B4"
%ST_ATTR$=$000007$
%W_MSG$=ESC+"F0"+ESC+"B6"
->

The following illustrates the use of DUMP OBJECT (VERSION 7 only):

->DUMP OBJECT 100015
! Dump of OBJECT information
_Obj=100015
_Class$="*rpt/RptSort"
_Refcnt=1
! External Properties
Order$="A" Length=6
Type$="S" SegmentName$="AccountID"