Sunday 15 April 2012

Add title to a SAS dataset -



Add title to a SAS dataset -

i hope can help me out question.

after creating summarizing table (using proc summary, proc means etc.), add together title dataset. it's not easiest thing remember sample restrictions etc. help lot able add together title, example: "mean income (note: incomes < $1000 have been excluded)".

an obvious way of doing create dataset...

data title; length title $100; title = "mean income (note: incomes < $1000 have been excluded)"; run;

...and combine summarizing table. there standard procedure add together title while creating table?

if understood correctly, want accomplish called label of sas dataset. can add together label dataset when creating using dataset alternative label. should able utilize anywhere can utilize dataset options , you're creating dataset, e.g.:

data title (label="mean income (note: incomes < $1000 have been excluded)"); length var1 8; run; proc sql; create table title2 (label="title in sql") select * title ; quit; proc sort data=title out = title_sorted (label="title sorted"); var1; run;

or add/modify title later via proc datasets:

proc datasets lib=work nodetails nolist; modify title (label="new title"); quit;

sas

No comments:

Post a Comment