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-2026-white.png



April 27 – 30 | Gaylord Texan | Grapevine, Texas

Registration is open

Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!

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