Pages

Monday, October 14, 2013

Widgets

Automatic email from SAS after program completion

 If you want to sent an email as soon as your program completes, try:

sas program.sas ; echo program.sas is done | mail youruserid

If you don't want to regularly check the status of the program and wants to get notified to start your next job
If you only want an email if your program bugs out, try:

sas program.sas || echo your program didn't work | mail youruserid

You can write anything that you want in your email after echo.

1 comment: