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.

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 297 views
  • 0 likes
  • 2 in conversation