Architecting, installing and maintaining your SAS environment

Error in setting up Schedule Flow in SMC

Reply
Occasional Contributor
Posts: 13

Error in setting up Schedule Flow in SMC

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?

Contributor
Posts: 28

Re: Error in setting up Schedule Flow in SMC

Hi,

 

which operating system you are using?

 

If Unix, hope the below web link helps:

 

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

 

Occasional Contributor
Posts: 13

Re: Error in setting up Schedule Flow in SMC

Posted in reply to sandykota

Thanks for the link, but I am using Windows.

Trusted Advisor
Posts: 1,758

Re: Error in setting up Schedule Flow in SMC

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.

Occasional Contributor
Posts: 13

Re: Error in setting up Schedule Flow in SMC

Posted in reply to JuanS_OCS

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
Trusted Advisor
Posts: 1,758

Re: Error in setting up Schedule Flow in SMC

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

Ask a Question
Discussion stats
  • 5 replies
  • 276 views
  • 1 like
  • 3 in conversation