Hello,
I have a .bat file (which runs a SAS program on SAS production server) that is scheduled (from ESP server/scheduler) using a Service account.
The batch file runs fine with both the accounts but when service account is used it simply doesnt send emails (part of SAS code to send completion emails).
It seems like, when the service account is used it is not able to resolve the macro variables in the send_email macro that I am using here.
The read and write permissions for both the accounts on the SAS server appear the same.
Your service account would have to be a valid user in your email system for email to work. Try logging into your email system with this account and see if it works.
Using service account/user account, the send_email runs fine when it is executed separately. But when the send_email is called from another macro, it fails to resolve the macro variables in case of service account. No problems with user account though.
Good news: We've extended SAS Hackathon registration until Sept. 12, so you still have time to be part of our biggest event yet – our five-year anniversary!
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.