01-24-2018 09:46 PM
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?
01-25-2018 08:20 AM
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.
01-25-2018 09:17 PM
Thanks for the response, @JuanS_OCS. I am using Local SAS Administrator account. Are these the folders I should give access to?
01-26-2018 03:35 AM
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: