Hello,
When I perform a proc export to xlsx it is creating a .bak file in the same directory. Is there a way to prevent this?
proc export data=mydataset
dbms=xlsx
outfile="C:\Temp\myexcelfile.xlsx" replace;
sheet="myexcelsheet";
run;
see: https://communities.sas.com/t5/Base-SAS-Programming/Clean-bak-files-from-PROC-EXPORT/td-p/316201
Art, CEO, AnalystFinder.com
see: https://communities.sas.com/t5/Base-SAS-Programming/Clean-bak-files-from-PROC-EXPORT/td-p/316201
Art, CEO, AnalystFinder.com
Thanks @art297. I couldn't find anything here with my search of .bak. Weird. I guess I will try the fdelete function. I thought there might be a parameter I was missing in the proc export function.
I rely on Google for most searches. In this case I searched for: proc export sas bak file excel
Art, CEO, AnalystFinder.com
same here. I just missed that post somehow. I appreciate the help.
I've thrown in a macro there to clean things up, free gratis and for nothing, which may help.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 25. Read more here about why you should contribute and what is in it for you!
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.