O'Reilly logo

SAS 9.4 Language Reference, 6th Edition by SAS Institute

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

SOURCE2
controls whether SAS writes source statements included by %INCLUDE to the
SAS log.
Debugging Logic Errors in the DATA Step
To debug logic errors in a DATA step, you can use the DATA step debugger. This tool
enables you to issue commands to execute DATA step statements one by one and then
pause to display the resulting variables' 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 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. For detailed
information about how to use the DATA step debugger, see “Using the DATA Step
Debugger” in Base SAS Utilities: Reference.
154 Chapter 8 Error Processing and Debugging

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required