Hi SAS Users!
When I use PROC MEANS, the results created by SAS EG is under HTML form, can I ask how come we change this result to sas7bdat form?
Because when I run the code
proc means data=argentina_ n nmiss mean p1 median p99 std min max;
run;
It turn out a result like that
My concern is the output name HTML- 10.out macro where 10.out macro is the name of the project. Now I want to change from HTML to sas7bdat and 10.out macro to argentina__ (cats(argentina_,"_")).
Could you please give any suggestion?
Many thanks and warm regards.
Depends a bit on exactly how you want the data outputted, there are many options to control it.
Assuming you just want what you see, make sure to use the STACKODS option.
proc means data=sashelp.class STACKODSOUTPUT;
class sex;
var weight height;
ods output summary=stacked;
run;
Data is saved to a data set called STACKED.
@Phil_NZ wrote:
Hi SAS Users!
When I use PROC MEANS, the results created by SAS EG is under HTML form, can I ask how come we change this result to sas7bdat form?
Because when I run the code
proc means data=argentina_ n nmiss mean p1 median p99 std min max; run;
It turn out a result like that
My concern is the output name HTML- 10.out macro where 10.out macro is the name of the project. Now I want to change from HTML to sas7bdat and 10.out macro to argentina__ (cats(argentina_,"_")).
Could you please give any suggestion?
Many thanks and warm regards.
Depends a bit on exactly how you want the data outputted, there are many options to control it.
Assuming you just want what you see, make sure to use the STACKODS option.
proc means data=sashelp.class STACKODSOUTPUT;
class sex;
var weight height;
ods output summary=stacked;
run;
Data is saved to a data set called STACKED.
@Phil_NZ wrote:
Hi SAS Users!
When I use PROC MEANS, the results created by SAS EG is under HTML form, can I ask how come we change this result to sas7bdat form?
Because when I run the code
proc means data=argentina_ n nmiss mean p1 median p99 std min max; run;
It turn out a result like that
My concern is the output name HTML- 10.out macro where 10.out macro is the name of the project. Now I want to change from HTML to sas7bdat and 10.out macro to argentina__ (cats(argentina_,"_")).
Could you please give any suggestion?
Many thanks and warm regards.
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!
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.
Ready to level-up your skills? Choose your own adventure.