I have Excel report with multiple sheets having formula's refreshing from Backend sheet of same excel. After exporting data to one of the sheets, i can't open the excel.
filename temp "/home/ouput/auto/sas/NAV_Report3.xlsx";
proc export data=Test
outfile=temp
dbms=xlsx
replace;
sheet='Backend';
run; quit;
Error that i am getting is
" We found a problem with some content in 'NAV_Report3.xlsx'. Do you want us to try to recover as much as we can? If you trust the source of this workbook, click yes."
After clicking Yes, i am getting
"The workbook cannot be opened or repaired by Microdoft Excel because it is corrupt."
Any idea folks ??
My first guess is that your data set you export contains something that is being interpreted by EXCEL as an "instruction" of some sort. What is in your data?
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 lock in 2025 pricing—just $495!
Still thinking about your presentation idea? The submission deadline has been extended to Friday, Nov. 14, at 11:59 p.m. ET.
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.