DATA Step, Macro, Functions and more

Service account vs user account macro resolution problems

Reply
Occasional Contributor
Posts: 10

Service account vs user account macro resolution problems


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.

Super User
Posts: 3,101

Re: Service account vs user account macro resolution problems

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.

Occasional Contributor
Posts: 10

Re: Service account vs user account macro resolution problems

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.

Ask a Question
Discussion stats
  • 2 replies
  • 191 views
  • 0 likes
  • 2 in conversation