ods excel file="/home/sasuser/bin/MCDdata.xlsx"
options(sheet_name="MCD Data"
sheet_interval='none'
embedded_titles='yes');
title "Report for Johns Hopkins Medical Services Corporation";
proc print data = t_mcd noobs;
run;
ods excel close;
I want some kind of condition to decide to crate a .xlsx output or not create one. Please help
And the condition is provided by what? A parameter of the macro? If so, then just do something like:
%if &condition. = YES %then %do;
insert your exporting code here
%end;
The code is in a macro already. I just want to say create a excel or don't. Condition "YES" or "NO".
And the condition is provided by what? A parameter of the macro? If so, then just do something like:
%if &condition. = YES %then %do;
insert your exporting code here
%end;
It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.
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.