BookmarkSubscribeRSS Feed
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

Hello,

 

Please I need to save in a SAS dataset the comparison of means between the risk groups as shown below:

HS2_0-1664275421123.png

the code I used is:


PROC GLM DATA=NUTR OUTSTAT=PLEASE;
class riskc;
model VITB3=riskc;
means riskc / tukey;
run;

 

However I cannot track the output in a saved dataset under WORK library.

 

Thanks for the help!

2 REPLIES 2
PaigeMiller
Diamond | Level 26

Add the following line into your PROC GLM

 

ods output cldiffs=cldiffs;
--
Paige Miller
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

It worked! thank you .

 

I was using the syntax 'diffs' instead ..

SAS Innovate 2025: Call for Content

Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!

Submit your idea!

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
  • 2 replies
  • 421 views
  • 2 likes
  • 2 in conversation