Hi SAS Users,
I have a problem when exporting a SAS file(235,009 observations) to an Excel file.
The code is:
PROC EXPORT DATA=SASFILE
OUTFILE='P:\OUT\EXCELFILE.xlsx'
DBMS=excel REPLACE;
RUN;
However I got an error in the log:
ERROR: Execute: Unable to insert row
WARNING: File deletion failed for _IMEX_.SASFILE.DATA.
ERROR: Export unsuccessful. See SAS Log for details.
But there has not much information in the log. I checked the output folder(P:\OUT\) and did see the Excel file has been output but not fully output. The input SAS file has 235,009 observations, but the output Excel file only has 212,419 observations. There are 23,590 observations missing! So that's why the log says 'Unable to insert row'.
I have struggled this issue with multiple hours. Could you please give me some advice?
Thank you in advance!
Best,
Runrunbunny
Hi @runrunbunny
Check out this KB link mentioning about similar problem.
https://support.sas.com/kb/14/487.html
Hi @runrunbunny
Check out this KB link mentioning about similar problem.
https://support.sas.com/kb/14/487.html
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.