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.
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.