Hi,
Im reaching out to this community for help with a small issue. I am trying to update an existing excel file (if it is somehow possible) but the data keeps replacing or overwriting. I want the Claims tab to keep updating when the sas is ran. Any suggestions would be appreciated.
proc export
data=hdat.revclaimsmaster
outfile="\TEST.xlsx"
dbms=excel;
SHEET="Claims";
run;
proc export
data=hdat.nonrevclaimsmaster
outfile="\TEST.xlsx"
dbms=excel;
SHEET="Claims";
run;
I was able to bypass it by adding &RUNDT to the filename. It creates an excel file with a current date in a title
Does adding the REPLACE option help?
proc export
data=hdat.nonrevclaimsmaster
outfile="\TEST.xlsx"
dbms=excel
replace;
SHEET="Claims";
run;
I was able to bypass it by adding &RUNDT to the filename. It creates an excel file with a current date in a title
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.