BookmarkSubscribeRSS Feed
Pyrite | Level 9



I'm working with scheduling jobs in SMC. I want to send a mail or receive an alert for the failed job and was wondering if there is such feutures for scheduled jobs(in SMC)? Or should I write a separate sas program for scheduled jobs to send a mail?


I read some information that there is such alert for SAS work directory and server log file.

Fluorite | Level 6

On SMC you can scheduler you SAS Jobs, but you have no resource for controlling the jobs behavior.


You'll to use a SAS program to send e-mails depending the job's state

Obsidian | Level 7

Hi Riana - 


Have you considered scheduling on the OS and integrating the organization's smtp server for notifications? You can do this easily on Linux OS by editing your contab entry (using the sas install account). 


su to SAS account:

~ sudo su -l sas


open in VI:

~ crontab -e


edit file:

# For details see man 4 crontabs

# Example of job definition:
# .---------------- minute (0 - 59)
# | .------------- hour (0 - 23)
# | | .---------- day of month (1 - 31)
# | | | .------- month (1 - 12) OR jan,feb,mar,apr ...
# | | | | .---- day of week (0 - 6) (Sunday=0 or 7) OR sun,mon,tue,wed,thu,fri,sat
# | | | | |



Then create an alias in etc/aliases for the distro list:

sasadmins:,, etc...


Then run newaliases to update the database.


Hope this helps


Opal | Level 21

What scheduling server are you using in SMC? If it is Platform Process Manager then you can set this up in the scheduled job properties.

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
  • 3 replies
  • 4 in conversation