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. 🙂

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


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