BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
runrunbunny
Obsidian | Level 7

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

1 ACCEPTED SOLUTION

Accepted Solutions
Anand_V
Ammonite | Level 13

Hi @runrunbunny 

 

Check out this KB link mentioning about similar problem.

https://support.sas.com/kb/14/487.html

 

View solution in original post

2 REPLIES 2
Anand_V
Ammonite | Level 13

Hi @runrunbunny 

 

Check out this KB link mentioning about similar problem.

https://support.sas.com/kb/14/487.html

 

runrunbunny
Obsidian | Level 7
Thank you!

Ready to join fellow brilliant minds for the SAS Hackathon?

Build your skills. Make connections. Enjoy creative freedom. Maybe change the world. Registration is now open through August 30th. Visit the SAS Hackathon homepage.

Register today!
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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 2048 views
  • 0 likes
  • 2 in conversation