BookmarkSubscribeRSS Feed
SAS93
Quartz | Level 8

I'm trying to export a SAS dataset as an Excel file; this process is scheduled using Task Scheduler. 

Occasionally, I'll get the following error, and the file will either not export or not finish exporting--ending up in a corrupt file. Running the code manually doesn't appear to have this issue. 

 


WARNING: During insert: : Data value was not sent for column. Coll_Dt
WARNING: During insert: : Data value was not sent for column. Coll_Dt
WARNING: The data set _IMEX_.Collected_DATE may be incomplete. When this step was
stopped there were 788585 observations and 16 variables.
ERROR: ROLLBACK issued due to errors for data set _IMEX_.Collected_DATE.
ERROR: User asked for termination
NOTE: The SAS System stopped processing this step because of errors.
NOTE: PROCEDURE EXPORT used (Total process time):
real time 15:35.08
cpu time 14:05.43

 

Someone I work with suggested it's because a data variable in the original dataset might contain a date before 01/01/1900, but when I went through the dataset, I didn't find anything earlier than January 2021.

 

Any ideas or guidance to solve this would be helpful. 

2 REPLIES 2
ChrisNZ
Tourmaline | Level 20

This definitely looks like a data issue.

The odd part is that the issue does not arise when running the program manually.

Can it be reliably be repeated if the batch program is run several time?

Does all the data look OK when the import is manual?

 

If I were you, I'd try to find which data causes that issue.

Several ways to do this: by growing the number of lines read until the suspicious data triggers the error, or by running a thorough cell validation in Excel. 

ChrisNZ
Tourmaline | Level 20

> When this step was stopped there were 788585 observations and 16 variables.

That's a starting point. Focus your investigation there. What's different?

sas-innovate-2024.png

Available on demand!

Missed SAS Innovate Las Vegas? Watch all the action for free! View the keynotes, general sessions and 22 breakouts on demand.

 

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.

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