BookmarkSubscribeRSS Feed
StaceyB
Obsidian | Level 7

I'm trying to use the debugger in PC SAS.  I enter "W V739" to watch a variable named V739.  The log shows that V739 changes it's value at the set statement.  This is not helpful.  The data is as is at the set statement.  How can the value change before any statements occur?  I need to figure out where within the data step the value is changing and was hoping the debugger would help since it's not clear.

 

debugger.png

 

Any tips on what I'm overlooking or what I should be doing with the debugger instead?

 

 

 

1 REPLY 1
andreas_lds
Jade | Level 19

@StaceyB wrote:

I'm trying to use the debugger in PC SAS.  I enter "W V739" to watch a variable named V739.  The log shows that V739 changes it's value at the set statement.  This is not helpful.  The data is as is at the set statement.  How can the value change before any statements occur?  I need to figure out where within the data step the value is changing and was hoping the debugger would help since it's not clear.

 

...

 

Any tips on what I'm overlooking or what I should be doing with the debugger instead?

 


What the debugger shows is exactly what happens: the variable is created in the pdv with missing value, then, with the first iteration the value is set to 7 - as reported by the debugger.

 

I never used the debugger in classic sas (aka display manager). If you need help understanding a data step, posting it seems to be a great idea.

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 16. Read more here about why you should contribute and what is in it for you!

Submit your idea!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 1 reply
  • 320 views
  • 0 likes
  • 2 in conversation