Hello Experts,
I'm wondering how to create a macro variable with spaces : %let Feuille = Villes et rues
I would like to use this macro varaible in proc export's sheet statement :
.....
dbms=xlsx replace;
sheet="&Feuille .";
.....
Thank you for your help !
Just make sure there's no blank between the macro variable name and the dot:
%let Feuille = Villes et rues;
proc export
data=sashelp.class
file="/folders/myfolders/class.xlsx"
dbms=xlsx
replace
;
sheet="&Feuille.";
run;
I'm not sure what the question is, the code you provided (if you add a semi-colon at the end of the %LET statement) should work perfectly.
Just make sure there's no blank between the macro variable name and the dot:
%let Feuille = Villes et rues;
proc export
data=sashelp.class
file="/folders/myfolders/class.xlsx"
dbms=xlsx
replace
;
sheet="&Feuille.";
run;
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 save with the early bird rate—just $795!
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.