SAS Programming

DATA Step, Macro, Functions and more
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
AnandVyas
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
AnandVyas
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!

sas-innovate-white.png

Special offer for SAS Communities members

Save $250 on SAS Innovate and get a free advance copy of the new SAS For Dummies book! Use the code "SASforDummies" to register. Don't miss out, May 6-9, in Orlando, Florida.

 

View the full agenda.

Register now!

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
  • 2 replies
  • 2788 views
  • 0 likes
  • 2 in conversation