BookmarkSubscribeRSS Feed
SASdevAnneMarie
Barite | Level 11

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 !

 

SASdevAnneMarie_0-1724530327320.png

 

8 REPLIES 8
PaigeMiller
Diamond | Level 26

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?

--
Paige Miller
Quentin
Super User

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.

 

 

 

The Boston Area SAS Users Group is hosting free webinars!
Next webinar will be in January 2025. Until then, check out our archives: https://www.basug.org/videos. And be sure to subscribe to our our email list.
SASdevAnneMarie
Barite | Level 11

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 :

 

SASdevAnneMarie_0-1724581150537.png

 

 

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 !

SASdevAnneMarie
Barite | Level 11

Thank you Kurt!

 

You mean that I must to do this while scheduling :

 

SASdevAnneMarie_0-1724592981503.png

 

SASKiwi
PROC Star

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.

SAS Innovate 2025: Save the Date

 SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!

Save the date!

How to Concatenate Values

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.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 8 replies
  • 783 views
  • 2 likes
  • 6 in conversation