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.
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.