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?
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.
Thanks for the response, @JuanS_OCS. I am using Local SAS Administrator account. Are these the folders I should give access to?
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:
The SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment.
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.