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:
Any input would be much appreciated. Thank you in advance!
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.
You can send mails from code by using the FILENAME Statement (EMAIL Method)
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.
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 🙂
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.
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.
Ready to level-up your skills? Choose your own adventure.