03-24-2015 05:34 PM
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.
03-24-2015 05:47 PM
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.
03-25-2015 10:59 AM
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.