BookmarkSubscribeRSS Feed

How to Debug SAS DATA Step

Started ‎09-20-2023 by
Modified ‎10-26-2023 by
Views 917

Learn how to use the SAS DATA step debugger to save time and become a more productive programmer. You will learn:

  • what the SAS DATA step debugger is and where to find it
  • how to use the debugger to set breakpoints, watch values and solve logic problems
  • what the limitations of the debugger are.

Presented at SAS Explore 2023 - slide presentation is attached to this article.

 

Learn more at:

For completeness, I've also included the animated images used during demonstration.

 

Debug IF vs WHERE (WHERE example)Debug IF vs WHERE (WHERE example)

 

Debug IF vs WHERE (IF example)Debug IF vs WHERE (IF example)

Setting a conditional breakpointSetting a conditional breakpoint

 

FIRSt-dot and LAST-dot processing in the PDVFIRSt-dot and LAST-dot processing in the PDV

 

Closer look at INFILE and INPUT processingCloser look at INFILE and INPUT processing

 

DATA step arrays in the Watch window (SAS Studio view)DATA step arrays in the Watch window (SAS Studio view)

 

Version history
Last update:
‎10-26-2023 02:07 PM
Updated by:
Contributors

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

Article Tags

SAS Explore 2023 presentations are now available! (Also indexed for search at lexjansen.com!)

View all available SAS Explore content by category: