I am very new to SAS and having difficulties here.
I am trying to take the sum of the variables from output table and make it into a SAS file, so that I can make a graph.
How can I use ODS OUTPUT to make a file? Or is there some other ways?
Variables are numeric values.
Here are my CODE:
DATA DRUG;
SET MEPS;
RUN;
proc surveymeans data=DRUG sum;
STRATUM VARSTR;
CLUSTER VARPSU;
WEIGHT PERWT11F;
VAR VAR1-VAR11;
RUN;
Thank you
You need to use ODS statements, add this before or in the PROC.
ods output statistics = want1 summary = want2;
@Camem wrote:
I am very new to SAS and having difficulties here.
I am trying to take the sum of the variables from output table and make it into a SAS file, so that I can make a graph.
How can I use ODS OUTPUT to make a file? Or is there some other ways?
Variables are numeric values.
Here are my CODE:
DATA DRUG;
SET MEPS;
RUN;
proc surveymeans data=DRUG sum;
STRATUM VARSTR;
CLUSTER VARPSU;
WEIGHT PERWT11F;
VAR VAR1-VAR11;
RUN;
Thank you
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 save with the early bird rate—just $795!
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.