Hi Team,
Can any one help me on the below issue .
I have a sas code locally in my machine and i want to schedule the job and it has to run the code everyday .Can any one please share some options .
options :I have sas studio and it dont have scheduling option
Can i run the sas code using .dat file if any chance to run the sas code using .dat file then please share the options to run the sas code everyday evening 6pm
You can schedule your SAS code to run daily using the Windows Task Scheduler. Here’s a step-by-step guide to help you set it up:
Create a Batch File:
.bat
file with the following content:
"C:\Program Files\SASHome\SASFoundation\9.4\sas.exe" -sysin "C:\path\to\your\script.sas" -log "C:\path\to\your\log.log" -print "C:\path\to\your\output.lst"
Schedule the Batch File:
.bat
file.
Learn more:
yes
@U2 wrote:
So if I schedule using task scheduler should my system or laptop should on
Of course. And the SAS system must be installed locally on that computer.
If you use a remote SAS server with Enterprise Guide or SAS Studio, the code file must be stored there, and the scheduling done using the server's resources.
SAS Innovate 2025 is scheduled for May 6-9 in Orlando, FL. Sign up to be first to learn about the agenda and registration!
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.
Ready to level-up your skills? Choose your own adventure.