<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: how to execute SAS base code using windows scheduler? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/how-to-execute-SAS-base-code-using-windows-scheduler/m-p/785319#M250616</link>
    <description>you can use -sysin for batch mode.&lt;BR /&gt;&lt;BR /&gt;In Task scheduler,&lt;BR /&gt;- specify the full path of SAS.exe in Program/Script&lt;BR /&gt;- 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.&lt;BR /&gt;&lt;BR /&gt;For example&lt;BR /&gt;[%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe] in Program/Script box&lt;BR /&gt;and&lt;BR /&gt;[-sysin "C:\Temp\test.sas" -log "C:\Temp\test.log"] in parameter box&lt;BR /&gt;&lt;BR /&gt;If you want to run multiple programs, you can create a bat file with the following command and register it in the scheduler.&lt;BR /&gt;&lt;BR /&gt;%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram1.sas" -log "logfilepath1.log"&lt;BR /&gt;%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram2.sas" -log "logfilepath2.log"&lt;BR /&gt;</description>
    <pubDate>Fri, 10 Dec 2021 07:38:54 GMT</pubDate>
    <dc:creator>japelin</dc:creator>
    <dc:date>2021-12-10T07:38:54Z</dc:date>
    <item>
      <title>how to execute SAS base code using windows scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-execute-SAS-base-code-using-windows-scheduler/m-p/785313#M250611</link>
      <description>&lt;P&gt;Hi Team,&lt;/P&gt;&lt;P&gt;I am newbie in SAS base 9.4 tool. Normally I execute SAS master code using SAS base 9.4 tool. Currently I am looking to schedule those master code using windows scheduler along with some dependencies amongst them.&lt;/P&gt;&lt;P&gt;Can you please advise how to automate schedule those SAS code using windows scheduler.&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Dec 2021 06:46:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-execute-SAS-base-code-using-windows-scheduler/m-p/785313#M250611</guid>
      <dc:creator>AlexCarey</dc:creator>
      <dc:date>2021-12-10T06:46:19Z</dc:date>
    </item>
    <item>
      <title>Re: how to execute SAS base code using windows scheduler?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/how-to-execute-SAS-base-code-using-windows-scheduler/m-p/785319#M250616</link>
      <description>you can use -sysin for batch mode.&lt;BR /&gt;&lt;BR /&gt;In Task scheduler,&lt;BR /&gt;- specify the full path of SAS.exe in Program/Script&lt;BR /&gt;- 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.&lt;BR /&gt;&lt;BR /&gt;For example&lt;BR /&gt;[%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe] in Program/Script box&lt;BR /&gt;and&lt;BR /&gt;[-sysin "C:\Temp\test.sas" -log "C:\Temp\test.log"] in parameter box&lt;BR /&gt;&lt;BR /&gt;If you want to run multiple programs, you can create a bat file with the following command and register it in the scheduler.&lt;BR /&gt;&lt;BR /&gt;%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram1.sas" -log "logfilepath1.log"&lt;BR /&gt;%PROGRAMFILES%\SASHome\SASFoundation\9.4\sas.exe -sysin "sasprogram2.sas" -log "logfilepath2.log"&lt;BR /&gt;</description>
      <pubDate>Fri, 10 Dec 2021 07:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/how-to-execute-SAS-base-code-using-windows-scheduler/m-p/785319#M250616</guid>
      <dc:creator>japelin</dc:creator>
      <dc:date>2021-12-10T07:38:54Z</dc:date>
    </item>
  </channel>
</rss>

