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.
Don't miss out on SAS Innovate - Register now for the FREE Livestream!
Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.
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.