The following example dumps the value of variable A to a file named FYLE each time the statement labeled LBL is encountered during execution of the program.
DUMP FYLE (A) LBL
The following example dumps the values of I, INFO, and INDX to a file named PRNTR when the statement labeled NEXT is encountered. A label counter, DMPCOUNT, counts the number of times the statement labeled NEXT is encountered. Dumps occur until the value of DMPCOUNT exceeds DPHIGH. Note that when a label counter is specified, the counter can also be altered elsewhere in the program.
DUMP PRNTR (I,INFO,INDX) NEXT (DMPCOUNT, ,DPHIGH)
The following example dumps the values of X, Y, ARRAYV, and COUNTER to a file named FID. Because a label counter modulus of 3 is specified, a dump of these items occurs only every third time the label LOUP is encountered during execution of the program.
DUMP FID (X,Y,ARRAYV,COUNTER) LOUP: 3
The following example dumps the values of A, B, LBL1, and ARRAYV to a file named LP. Because a label counter modulus of 5 is specified, a dump of these items occurs only every fifth time the label AGAIN is encountered during execution of the program. Dumps are further restricted to those times when the label counter TALY has a value between 20 and 50, inclusive. Because the dump occurs each time TALY MOD 5 = 0, dumps occur when TALY has the values 20, 25, 30, 35, 40, 45, and 50. Note that TALY can be altered elsewhere in the program.
DUMP LP (A,B,LBL1,ARRAYV) AGAIN: 5 (TALY,20,50)

