Architecting, installing and maintaining your SAS environment

SAS batch jobs from LSF don't send email

Reply
Occasional Contributor
Posts: 18

SAS batch jobs from LSF don't send email

[ Edited ]

Hello,

 

How can I configure the email notification in SAS?

From SAS DI, if I run a job it sends the email. If I have a batch job, or If I run a job from MC, the email isn't sent.

What I need to modify to have a functional email function?

 

Thanks

Super User
Posts: 9,914

Re: SAS batch jobs don't send email

Posted in reply to danielmitu

Do you send the email from code, or do you use a task in a EG project?

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 18

Re: SAS batch jobs from LSF don't send email

[ Edited ]
Posted in reply to KurtBremser

I don't send it from sas code. It is set up in sasv9.cfg.

Super User
Posts: 9,914

Re: SAS batch jobs don't send email

Posted in reply to danielmitu

In sasv9.cfg the infrastructure is set up. The configuration file does not send any emails on its own.

But I guess you use filename email in your code, right?

 

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 18

Re: SAS batch jobs from LSF don't send email

[ Edited ]
Posted in reply to KurtBremser

IN the lsf.conf I added these lines:

# Batch mail message handling
LSB_MAILTO=!U
LSB_MAILPROG=lsmail.exe
LSB_MAILSERVER=SMTP:smtp.......

THe job is ended but no email is sent.

Super User
Posts: 9,914

Re: SAS batch jobs from LSF don't send email

Posted in reply to danielmitu

I moved this question to the Administration and Deployment community, as it looks more like a configuration and less like a programming issue.

I myself have no experience with LSF.

I also edited your subject lines accordingly.

---------------------------------------------------------------------------------------------
Maxims of Maximally Efficient SAS Programmers
How to convert datasets to data steps
How to post code
Occasional Contributor
Posts: 18

Re: SAS batch jobs from LSF don't send email

Posted in reply to danielmitu
Also in sasv9.cfg I have the below lines:
-emailsys SMTP
-emailhost SMTP.xxxx.xxx
-emailport 25
New Contributor
Posts: 3

Re: SAS batch jobs from LSF don't send email

Posted in reply to danielmitu

Hi Daniel,

 

Can you provide snapshots of the job properties window & the attributes tab from SMC.

 

Also have a look at the below link.

 

http://support.sas.com/kb/24/429.html

 

If you are scheduling the job through SMC, The first requirement to send mail is that the technical part of mail setup  (smtp25 / Imap) should work. Check the ports are allowed & Try to ping your email host server which should ping successfully.

 

From the attributes tab of a job property in SMC schedule manager, You have the options to select the mail id, provide the email notification and other settings etc.

 

Hope this helps.

 

Regards,

Kushal Kumar R 

 

 

 

 

Ask a Question
Discussion stats
  • 7 replies
  • 248 views
  • 0 likes
  • 3 in conversation