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)
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.