Home Forums SAS Programming Talks How to debug Logical errors in SAS?

This topic contains 0 replies, has 1 voice, and was last updated by  blogger rajeev 3 months, 4 weeks ago.

Viewing 1 post (of 1 total)
  • Author
    Posts
  • #665

    blogger rajeev
    Keymaster

    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.

    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. Much is explained in detail in SAS official Documentation.

    We can also use Putlog _all_ with if lastobs;
    it will give vales of all variables at the end of each iteration.

Viewing 1 post (of 1 total)

You must be logged in to reply to this topic.