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

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

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