BookmarkSubscribeRSS Feed
Antoine44
Fluorite | Level 6

Hi everyone,

 

I'm using the following: 

proc reg data = evtrets2;
by evtdate;
model ret1=mktrf smb hml rmw cma umd wti / r cli clm;
run;

After that I get the SAS ouput but instead I'd like to get a table in the work lib, so under explorer and not under results (hope that makes sense).

Could anyone tell me how to do that? I'm guessing I might need to add something in the above code but not sure what. 

 

Let me know if you need clarifications. Thanks for your help!

6 REPLIES 6
Tom
Super User Tom
Super User

First thing is to read the documentation.  Do you want the OUTest= option?

Antoine44
Fluorite | Level 6
Thank you for that.

From this link: https://support.sas.com/documentation/cdl/en/statug/63033/HTML/default/viewer.htm#statug_reg_sect034...
I would you like figure 73.33 as a dataset.

I believe OUTest gives me figure 73.32 only (if I'm not mistaken).
ChrisNZ
Tourmaline | Level 20

If you need to capture procedure outputs, ODS TRACE and ODS OUTPUT are the statements you should get acquainted with. See here for example.

Antoine44
Fluorite | Level 6
Ok I'll go through the examples, thanks for that.

On a side note, what's a good way to properly learn how to use SAS? Book, website, etc...

ChrisNZ
Tourmaline | Level 20

> what's a good way to properly learn how to use SAS?

Solve all the problems you have! 🙂

Also, reading all the questions and solutions provided here.

Antoine44
Fluorite | Level 6
Alright, thanks 🙂

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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
  • 6 replies
  • 821 views
  • 1 like
  • 3 in conversation