01-04-2016 02:31 AM
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...?
01-04-2016 02:58 AM
01-04-2016 05:18 AM
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.
01-04-2016 05:27 AM
01-04-2016 10:35 AM
01-05-2016 12:27 AM
01-05-2016 12:33 AM
01-05-2016 07:24 AM
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)