BookmarkSubscribeRSS Feed
danielmitu
Obsidian | Level 7

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

7 REPLIES 7
danielmitu
Obsidian | Level 7

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

Kurt_Bremser
Super User

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?

 

danielmitu
Obsidian | Level 7

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.

Kurt_Bremser
Super User

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.

danielmitu
Obsidian | Level 7
Also in sasv9.cfg I have the below lines:
-emailsys SMTP
-emailhost SMTP.xxxx.xxx
-emailport 25
Kushalkmr714
Fluorite | Level 6

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 

 

 

 

 

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 7 replies
  • 2115 views
  • 0 likes
  • 3 in conversation