When you submit a DATA step with
the DEBUG option, SAS compiles the step, displays the debugger windows,
and pauses until you enter a debugger command to begin execution.
For example, if you begin execution with the GO command, SAS executes
each statement in the DATA step. To suspend execution at a particular
line in the DATA step, use the BREAK command to set breakpoints at
statements that you select. Then issue the GO command. The GO command
starts or resumes execution until the breakpoint is reached.
To execute the DATA
step one statement at a time or a few statements at a time, use the
STEP command. By default, the STEP command is mapped to the ENTER
key.
In a debugging session,
statements in a DATA step can iterate as many times as they would
outside the debugging session. When the last iteration has finished,
a message appears in the DEBUGGER LOG window.
You cannot restart DATA
step execution in a debugging session after the DATA step finishes
executing. You must resubmit the DATA step in your SAS session. However,
you can examine the final values of variables after execution has
ended.
You can debug only one
DATA step at a time. You can use the debugger only with a DATA step,
and not with a PROC step.