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

SAS 9.3 on Windows Server 2003 (yes, I know, will be moving to 2012 soon).

I have a Windows scheduled task that executes a SAS job to collect some data and append it to a data set.

Most of the time it works fine. Occasionally it fails, pops up a window (even though it's running in noninteractive mode) showing "ERROR: Undetermined I/O failure." and just waits forever for me to close the window. And while it's in that state, later scheduled executions can't happen.

Well, I don't care if it fails once in a while. I just want it to abort instead of hang, so the next scheduled run will run. Is there a way of getting that behaviour?

1 ACCEPTED SOLUTION

Accepted Solutions
ballardw
Super User

Options errorabend; at the start of the program MIGHT work. It may be that what you are getting is an OS error and not a SAS error, in which case SAS may not be able to determine it is in an error condition.

Note that errorabend will also terminate for other errors, so use carefully.

View solution in original post

3 REPLIES 3
ballardw
Super User

Options errorabend; at the start of the program MIGHT work. It may be that what you are getting is an OS error and not a SAS error, in which case SAS may not be able to determine it is in an error condition.

Note that errorabend will also terminate for other errors, so use carefully.

ajs_rdg
Fluorite | Level 6

Thanks, ballardw and scmebu. Options errorabend; worked so well that I never got around to trying -unbuflog.


The frequency of the job hanging dropped sharply.


Remaining hangs were attributable not to SAS itself but to curl (called from the SAS job) waiting forever. Using curl option --max-time took care of that nicely.


I also moved to from SAS 9.3 to 9.4 and Windows Server 2003 to 2012 at the same time, though that didn't seem to make any difference itself.

scmebu
SAS Employee

Also, try using the -unbuflog option when running SAS on this job.  If there's a crash and traceback information that's being lost when SAS hangs then this might ensure that information gets written to the log.

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

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
  • 3 replies
  • 8869 views
  • 3 likes
  • 3 in conversation