BookmarkSubscribeRSS Feed
USSCNewbie
Calcite | Level 5

Is there a way to put the code above the output made in the results viewer?

 

For a simple example:  

proc freq data=Depend;
tables NUMDEPEN;
run;

 

proc univariate data=Depend;
var NUMDEPEN;
run;

 

Can I put the code for the frequency in the results viewer and then see the results, followed by the univariate code and then see the results?   This would make it much easier to see what exactly is happening when the sample is restricted on certain variables, or what specific options were used (for more advanced code).

 

Thank you.

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Can I put the code for the frequency in the results viewer and then see the results, followed by the univariate code and then see the results?

 

Sure. You can copy and paste into Microsoft Word to get what you want that way.

--
Paige Miller
USSCNewbie
Calcite | Level 5
Ha...simplest solution right there that I didn't even think about. I was too busy trying to figure out the code to have it happen. 🙂

hackathon24-white-horiz.png

2025 SAS Hackathon: There is still time!

Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!

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
  • 2 replies
  • 700 views
  • 1 like
  • 2 in conversation