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.
Available on demand!
Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.
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.