BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

Hello,

 

I am working on proc corr and I need to save the output in SAS dataset under WORK library, however the only printed variables are:

MEAN

STD

N

CORR

CORR

 

Can you please advise?

1 ACCEPTED SOLUTION

Accepted Solutions
RW9
Diamond | Level 26 RW9
Diamond | Level 26

Before the code run:

ods trace on;

This will show in the listing all the objects which are created.  You can then re-run the code and save the various output models with:

ods output <object>=<dataset>;

Per:

https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html

View solution in original post

4 REPLIES 4
HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

Hello,

 

Thank you 🙂

 

But actually I want to save this CI under SAS library dataset, below the attached screenshot of the ONLY variables/outputs printed in a dataset under WORK library.

 

 

 

 

RW9
Diamond | Level 26 RW9
Diamond | Level 26

Before the code run:

ods trace on;

This will show in the listing all the objects which are created.  You can then re-run the code and save the various output models with:

ods output <object>=<dataset>;

Per:

https://blogs.sas.com/content/iml/2017/01/09/ods-output-any-statistic.html

HS2
Fluorite | Level 6 HS2
Fluorite | Level 6

Thank you!!

It worked 🙂

 

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

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 4 replies
  • 1843 views
  • 1 like
  • 2 in conversation