BookmarkSubscribeRSS Feed
koya
Fluorite | Level 6


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.

2 REPLIES 2
SASKiwi
PROC Star

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.

koya
Fluorite | Level 6

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.

sas-innovate-2024.png

Join us for SAS Innovate April 16-19 at the Aria in Las Vegas. Bring the team and save big with our group pricing for a limited time only.

Pre-conference courses and tutorials are filling up fast and are always a sellout. Register today to reserve your seat.

 

Register now!

How to Concatenate Values

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.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 906 views
  • 0 likes
  • 2 in conversation