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 🙂

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

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.

SAS Training: Just a Click Away

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

Browse our catalog!

Discussion stats
  • 6 replies
  • 1096 views
  • 1 like
  • 3 in conversation