BookmarkSubscribeRSS Feed
Raven01
Obsidian | Level 7

Hi Everyone,

 

I am trying to schedule the run of a SAS Program in SMC using the steps provided in pages 5 - 8 in http://support.sas.com/resources/papers/proceedings16/11202-2016.pdf. 

I am logged in as a SAS admin. However, when I clicked OK, the error is as below:

 

Scheduling of 'New_Job' failed. ('Submission of generated code to server failed.  
ERROR: Creation of Scheduled Task New_job failed. A task already exists with that name.
ERROR: ScheduleFlow(): A system call to ITaskScheduler::NewWorkItem failed.  Windows Error Code: 

18446744071562526800 The file exists. ERROR: One or more flows were not successfully scheduled.').

 

These are settings that I have applied to my new job:

      Scheduling Server: Operating System Services - VA server

      SAS Batch Server: SASVA - SAS DATA Step Batch Server

      Directory: Batch Jobs

      Location : /Shared Data/SAS Data Integration/Job

 

How can I successfully setup the scheduling of my SAS Code?

5 REPLIES 5
sandykota
Obsidian | Level 7

Hi,

 

which operating system you are using?

 

If Unix, hope the below web link helps:

 

http://support.sas.com/kb/46/348.html

 

Raven01
Obsidian | Level 7

Thanks for the link, but I am using Windows.

JuanS_OCS
Amethyst | Level 16

Hello @Raven01,

 

you will need to delete a task in the windows task scheduler, that has the same name, then you can schedule the new one.

 

In case it does not exist this task, it means you will need permissions on certain folders on the C drive. And, in this case, or either you need a user that is administrator on both SAS environment and the Windows server, or you will need your Windows admin to granto you permissions to be able to schedule tasks.

Raven01
Obsidian | Level 7

Thanks for the response, @JuanS_OCS. I am using Local SAS Administrator account. Are these the folders I should give access to?

 

  1. D:\SAS\Config\Lev1\SASVA\SASEnvironment\SASCode\Jobs
  2. D:\SAS\Config\Lev1\SASVA\BatchServer\Logs
  3. D:\SAS\Config\Lev1\SASVA\BatchServer\Output
  4. D:\SAS\Config\Lev1\SASVA\BatchServer\sasbatch.bat
JuanS_OCS
Amethyst | Level 16

Hello @Raven01,

 

did you check if that task is already scheduled?

 

About your question, what you might need access to would be more on the Windows Tasks folder and Windows registry:

 

https://stackoverflow.com/questions/2913816/how-to-find-the-location-of-the-scheduled-tasks-folder

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
  • 5 replies
  • 3079 views
  • 1 like
  • 3 in conversation