BookmarkSubscribeRSS Feed
Abhinav26
Obsidian | Level 7

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 ??

1 REPLY 1
ballardw
Super User

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?

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 639 views
  • 0 likes
  • 2 in conversation