Help using Base SAS procedures

how i can refer to specific data from results?

Accepted Solution Solved
Reply
Contributor
Posts: 31
Accepted Solution

how i can refer to specific data from results?

Snap.PNG

That is part of results of PROC CORR. I need refer in my code to "Parameter Estimate" coeeficients. How to do it in my code?

Thank you.

 


Accepted Solutions
Solution
‎03-29-2016 12:23 PM
Super User
Super User
Posts: 7,401

Re: how i can refer to specific data from results?

Save the object that the procedure creates.  Each procedure creates a series of objects which contain various parts of the output.  You can see what objects are created using:

ods trace on;

Before your procedure code.  In the log it will show you what objects are created.  You can then change the above line to:
ods <object-name>=<datasetname>;

Have a look at this:

https://support.sas.com/rnd/base/ods/scratch/ods-tips.pdf

View solution in original post


All Replies
Super User
Posts: 17,837

Re: how i can refer to specific data from results?

You can capture the table into a dataset and then use it.

http://support.sas.com/documentation/cdl/en/statug/63962/HTML/default/viewer.htm#statug_ods_sect013....

 

That looks like output from regression though, not Proc Corr...

Solution
‎03-29-2016 12:23 PM
Super User
Super User
Posts: 7,401

Re: how i can refer to specific data from results?

Save the object that the procedure creates.  Each procedure creates a series of objects which contain various parts of the output.  You can see what objects are created using:

ods trace on;

Before your procedure code.  In the log it will show you what objects are created.  You can then change the above line to:
ods <object-name>=<datasetname>;

Have a look at this:

https://support.sas.com/rnd/base/ods/scratch/ods-tips.pdf

☑ This topic is SOLVED.

Need further help from the community? Please ask a new question.

Discussion stats
  • 2 replies
  • 253 views
  • 3 likes
  • 3 in conversation