BookmarkSubscribeRSS Feed
🔒 This topic is solved and locked. Need further help from the community? Please sign in and ask a new question.
Yiping
Fluorite | Level 6

Hi SAS Experts!

 

I am wondering if it's possible to have some codes at the end of a scheduled job created in Job Execution to send the output to myself through email. Something similar to press the email button in the "Results" page:

 

Yiping_0-1590143414317.png

 

Any input would be much appreciated. Thank you in advance!

 

1 ACCEPTED SOLUTION

Accepted Solutions
s_lassen
Meteorite | Level 14

You will probably want to write the output to a physical file (use ODS output statement), and then use a data step to send a mail with the file as an attachment, as @Kurt_Bremser wrote, look up the Email method in the filename statement.

 

View solution in original post

5 REPLIES 5
Yiping
Fluorite | Level 6
Thank you, sir, for your valuable input! 🙂
s_lassen
Meteorite | Level 14

You will probably want to write the output to a physical file (use ODS output statement), and then use a data step to send a mail with the file as an attachment, as @Kurt_Bremser wrote, look up the Email method in the filename statement.

 

Yiping
Fluorite | Level 6

Thank you for your help!

 

I've tried to write the codes as you suggested. There wasn't any error from the codes, but I encountered authorization issue. I guess the admin team needs to enable this feature for me.

 

I'll reach out to the admin team then 🙂 

 

 

Yiping
Fluorite | Level 6
Latest update, it turns out that it's a syntax error. I managed to send the email with attachment successfully after correcting the syntax.
Thank you!

sas-innovate-wordmark-2025-midnight.png

Register Today!

Join us for SAS Innovate 2025, our biggest and most exciting global event of the year, in Orlando, FL, from May 6-9. Sign up by March 14 for just $795.


Register now!

How to Concatenate Values

Learn how use the CAT functions in SAS to join values from multiple variables into a single value.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 5 replies
  • 1290 views
  • 2 likes
  • 3 in conversation