Hello Experts,
I would like to run my SAS program every day at 3 pm. I'm scheduling the task with Windows, but it doesn't seem to be working. Do you have any suggestions, please ? How to indicate the path correctly in windows environment ?
Thank you !
You can't tell us "it doesn't work" and provide no other information.
What did you try? SHOW US
What happened? SHOW US or explain in detail
What is wrong with what happened?
You have SAS installed on the Windows machine?
Using Windows scheduler, I use "Create Task"
Then for action I select "Start a program"
The program points to the sas executable, e.g.:
"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe"
And then I add the path to my .sas file as an option
-sysin "C:\MyDir\MyProgram.sas"
One the main task page, there are options for storing credentials, etc you might have to play with.
But as Paige said, please explain what you have tried, even showing screen shots of the task you have tried could hlep. And then show what happens when you try to run the task manually. It may show helpful error messages if the Windows scheduler can't start the job.
Bonjour,
Je pense que je me trompe quand je déclare le chemin vers mon projet egp et le planificateur ne fait aucune action, alors que le programme se lance manuellement :
Au lieu de \\XXX\XXX\XXX\Producti - V3.egp je dois indiquer « C :\Program Files\SASHome\SASFoundation\9.4\sas.exe » ?
Et sur une autre ligne « Ajouter des arguments (facultatif) : » -sysin « C :\MonRép\MonProgramme.sas » ?
Merci !
It seems you are trying to schedule Enterprise Guide project rather than SAS program, therefore I would recommend you check these resources for possible examples on how to
https://blogs.sas.com/content/sgf/2013/08/14/four-ways-to-schedule-sas-tasks/
Other related links:
- https://blogs.sas.com/content/sasdummy/2012/04/17/doing-more-with-sas-enterprise-guide-automation/
- https://support.sas.com/documentation/onlinedoc/guide/examples/SASGF2012/Hemedinger_298-2012.pdf
Hope this helps,
Ahmed
In a client/server environment, I STRONGLY recommend to use server-side scheduling with SAS program files (.sas), not client-side with EG projects.
Thank you Kurt!
You mean that I must to do this while scheduling :
If you do this on the servers console in a client-server setup.
Is this Windows SAS on a PC or Windows on a SAS Server? If this is a SAS server then SAS provides scheduling capabilities via SAS Management Console.
Are you ready for the spotlight? We're accepting content ideas for SAS Innovate 2025 to be held May 6-9 in Orlando, FL. The call is open until September 16. Read more here about why you should contribute and what is in it for you!
Learn how use the CAT functions in SAS to join values from multiple variables into a single value.
Find more tutorials on the SAS Users YouTube channel.
Select SAS Training centers are offering in-person courses. View upcoming courses for: