you can use -sysin for batch mode. In Task scheduler, - specify the full path of SAS.exe in Program/Script - specify the path of the sas program in -sysin, and the log output destination in -log as arguments, you can run the program in the task scheduler. For example [%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe] in Program/Script box and [-sysin "C:\Temp\test.sas" -log "C:\Temp\test.log"] in parameter box If you want to run multiple programs, you can create a bat file with the following command and register it in the scheduler. %PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram1.sas" -log "logfilepath1.log" %PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram2.sas" -log "logfilepath2.log"
... View more