SAS macro to generate the PDF/Excel/RTF report from the input SAS dataset..,indsn – Input Dataset, varlist – List of Variables to be printed. If none then print all variables in the dataset, report_type – PDF or Excel or RTF, title1 – Title1 of the report footnote1 – Footnote1 of the report report_location – Physical location of the report....
can u help me in building logic for this...?
So what is it "you" have done towards this, what is the "question" you are stuck on. Much like the other posts, this is just a request for someone else to write the program for you.
You can use the below logic to check the VAR Listed under VARS
%Macro ReportGen (indsn=DatasetName, Vars=);
Proc print data = &DatasetName;
%if &vars ne %then %do;
VAR &Vars;
%end;
%else %do;
%put no var specified !!;
%End;
Run;
%Mend ReportGen;
%ReportGen(Admit,)
%ReportGen(Admit, Name Gender)
Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.
Register today!Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.
Find more tutorials on the SAS Users YouTube channel.