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;
April 27 – 30 | Gaylord Texan | Grapevine, Texas
Walk in ready to learn. Walk out ready to deliver. This is the data and AI conference you can't afford to miss.
Register now and lock in 2025 pricing—just $495!
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.