BookmarkSubscribeRSS Feed
sai_prasad
Calcite | Level 5

While schedling the sas code using Windows schedular it is sending few mails as blank to the users ,while the same code is running in sas studio it is perfectly working.

 

Please guide me is there any solution/forums available to solve this issue.

 

Thanks in advance

2 REPLIES 2
Mark_sas
SAS Employee

It sounds like you're getting different behavior when you execute SAS code under a scheduler than when you run it interactively through SAS Studio.  There are a number of ways to schedule a SAS job.  Check out this blog for info.  It would be good to know if you could run this code directly as a batch script (in a .bat file), taking the scheduler out of the picture.

 

As to other forums you might consult, SAS Programming is a good option if you're just talking about submitting standard .sas code.


Register today and join us virtually on June 16!
sasglobalforum.com | #SASGF

View now: on-demand content for SAS users

anja
SAS Employee

Hi,

 

when you schedule via Win Scheduler, are you simply using .sas programs that have been created in BASE SAS, or, are you scheduling through SAS EG, exporting through SAS EG? (which, too, uses the Win Task Scheduler)

 

When you create a .sas and schedule it with the WIn Task Scheduler, SAS has nothing to do with the process, all it does is run the job you schedule in batch. When you use SAS Studio, it uses the email addresses that are either stored in metadata, or, entered manually.

 

You said that some emails are send blank, does that mean some users reveive emails that are ok when being

sent via code/Win Task Scheduler?

 

Thanks

Anja

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

CLI in SAS Viya

Learn how to install the SAS Viya CLI and a few commands you may find useful in this video by SAS’ Darrell Barton.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 1031 views
  • 0 likes
  • 3 in conversation