Undetermined I/O failure when sending email via Server

Reply
Occasional Contributor
Posts: 6

Undetermined I/O failure when sending email via Server

Dear all,

Need you help on the following: I am trying to send an email via SAS Base 9.2 (code below) from a server, which I connect remotely. The idea is to run this on a batch overnight.

The problem is that the code runs perfectly via batch when I am connected remotely, i.e., when I am logged in. However, when I am not, the email is not sent and the following error is generated on the log:

ERROR: Undetermined I/O failure.

NOTE: The SAS System stopped processing this step because of errors.

I really need the help of someone. I am using gmail via outlook. I look to all threats on the internet, already tried everything with no success whatesoever. Any help is appreciated. tks!

Code:

filename outbox email "xxx@gmail.com"

  to=("aaa@bbb")

  subject="SAS Routine - Batch";

data _null_;

  file outbox;

  put "Dear all, routine has successfully completed.";

run;

New Contributor
Posts: 3

Re: Undetermined I/O failure when sending email via Server

Hello there,

I am going through the same problem now. Were you able to resolve this issue? Thanks.

PROC Star
Posts: 1,099

Re: Undetermined I/O failure when sending email via Server

How are you submitting the code when you are not connected?

New Contributor
Posts: 3

Re: Undetermined I/O failure when sending email via Server

I am running a batch job using Windows Powershell. I am connected but SAS fails in the final email step where I am trying to send an email with a summary. I have an email to SAS tech support but they seemed to be baffled themselves at the moment. When running the job in EG SAS sends the email without any problems.

Community Manager
Posts: 2,768

Re: Undetermined I/O failure when sending email via Server

When running in the batch job, do you know if SAS has the -EMAIL* options set properly? Check PROC OPTIONS GROUP=EMAIL; RUN; in EG and compare to the same in the batch process.

Chris

PROC Star
Posts: 1,099

Re: Undetermined I/O failure when sending email via Server

Are you running SAS in batch from Powershell, or using Powershell to run Enterprise Guide using the scripting interface?

Tom

New Contributor
Posts: 3

Re: Undetermined I/O failure when sending email via Server

Yes THANK YOU Smiley Happy  Proc Options Group=email; showed me that the batch job is setup for MAPI email system. - just need an Options statement for EMAILSYS=SMTP

Ask a Question
Discussion stats
  • 6 replies
  • 1313 views
  • 1 like
  • 4 in conversation