This example demonstrates reading and writing to the &ERRMOD GPA. The error mode can be set by writing to the &ERRMOD GPA:
&ERRMOD=&CONTIN
The current error mode status can be read to control the program processing:
NUM=&ERRMOD
JUMP/RESTRT:,TERM:,NUM
If the current error mode is &CONTIN, a value of 2 is assigned to the numeric variable NUM, causing the JUMP statement to go to the RESTRT: label. If the current error mode is &TERM, a value of 1 is assigned to the numeric variable NUM, causing the JUMP statement to go to the TERM: label.