Using the DATA Step Debugger
By issuing commands,
you can execute DATA step statements one by one and pause to display
the resulting variable values in a window. By observing the results
that are displayed, you can determine where the logic error lies.
Because the debugger is interactive, you can repeat the process of
issuing commands and observing the results as many times as needed
in a single debugging session. To invoke the debugger, add the DEBUG
option to the DATA statement and execute the program.
The DATA step debugger
enables you to perform these tasks:
-
execute statements one by one or in groups
-
bypass the execution of one or more statements
-
suspend execution at selected statements, either in each iteration of DATA step statements ...
Get Step-by-Step Programming with Base SAS 9.4 now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.