proc export data=data1
OUTFILE="place_on_pc\template_SASdata.xlsx"
DBMS=EXCEL REPLACE;
sheet=input;
run;
Simple proc export code in SAS. However, I want to use the the "template_SASdata.xlsx" file as an template and save my data on a brand new file with the same sheets as my original excel template but updated 'input' sheet.
input="place_on_pc\template_SASdata.xlsx"
output="place_on_pc\data1_SASdata.xlsx"
How do I include that in my proc export? I have tried to add
infile = ="place_on_pc\template_SASdata.xlsx"
in my proc export but that doesn't work.