BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
12we
Fluorite | Level 6

Where do I find the DATA step debugger on SAS Studio? Is there one, or its only for SAS EG?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
SAS_Cares
SAS Employee

SAS Studio now offers the DATA step debugger. It's part of the SAS Viya versions of SAS Studio, which includes SAS Studio 5.2, and then all versions of SAS Viya 2020.1 and later.  You can start the Debugger by clicking Debug on the toolbar in the program window, then click the "bug" icon in the margin area. Here are screenshots:

 

ChrisHemedinger_1-1644850184205.png

 

 

ChrisHemedinger_0-1644850059915.png

 

For earlier versions of SAS Studio, you may want to try KurtBremser's recommendation from this post https://communities.sas.com/t5/SAS-Analytics-U/Debug-option-in-Data-Step-does-not-work/td-p/197405

 

As you know, you can also use the DATA step debugger in SAS Enterprise Guide. Here are a few more resources that may interest you as well on this topic:

View solution in original post

3 REPLIES 3
SAS_Cares
SAS Employee

SAS Studio now offers the DATA step debugger. It's part of the SAS Viya versions of SAS Studio, which includes SAS Studio 5.2, and then all versions of SAS Viya 2020.1 and later.  You can start the Debugger by clicking Debug on the toolbar in the program window, then click the "bug" icon in the margin area. Here are screenshots:

 

ChrisHemedinger_1-1644850184205.png

 

 

ChrisHemedinger_0-1644850059915.png

 

For earlier versions of SAS Studio, you may want to try KurtBremser's recommendation from this post https://communities.sas.com/t5/SAS-Analytics-U/Debug-option-in-Data-Step-does-not-work/td-p/197405

 

As you know, you can also use the DATA step debugger in SAS Enterprise Guide. Here are a few more resources that may interest you as well on this topic:

12we
Fluorite | Level 6

Thank you! I do not have SAS EG, only Studio.

rkbright
Obsidian | Level 7

Use the put statements. For example,

 

data storm_complete;
set pg2.storm_summary_small(obs=5);
putlog "Putlog after set statement";
put _all_;
run;

 

produces the following in the log

 

Putlog after set statement
Name= Basin=na MaxWind=35 StartDate=17JUL1980 EndDate=18NOV1980 _ERROR_=0 _N_=1
Putlog after set statement
Name= Basin=SP MaxWind=. StartDate=27MAR1980 EndDate=30MAR1980 _ERROR_=0 _N_=2
Putlog after set statement
Name=AGATHA Basin=EP MaxWind=115 StartDate=09JUN1980 EndDate=15JUN1980 _ERROR_=0 _N_=3
Putlog after set statement
Name=ALBINE Basin=SI MaxWind=. StartDate=27NOV1979 EndDate=06DEC1979 _ERROR_=0 _N_=4
Putlog after set statement
Name=ALEX Basin=WP MaxWind=40 StartDate=09OCT1980 EndDate=14OCT1980 _ERROR_=0 _N_=5

 

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

Register now!

Mastering the WHERE Clause in PROC SQL

SAS' Charu Shankar shares her PROC SQL expertise by showing you how to master the WHERE clause using real winter weather data.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 3 replies
  • 4563 views
  • 2 likes
  • 3 in conversation