<?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: run sas.exe in background on windows server 2012 R2 in Administration and Deployment</title>
    <link>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360148#M8671</link>
    <description>&lt;P&gt;Thank you so much Patrick.&amp;nbsp; I will give it a try.&lt;/P&gt;</description>
    <pubDate>Fri, 19 May 2017 22:59:05 GMT</pubDate>
    <dc:creator>BonnaryW</dc:creator>
    <dc:date>2017-05-19T22:59:05Z</dc:date>
    <item>
      <title>run sas.exe in background on windows server 2012 R2</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360134#M8669</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;How can run this this command in a background on windows server 2012 R2.&amp;nbsp; I used&amp;nbsp; he Task Scheduler and it's not doing anything.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;"C:\SASHome\SASFoundation\9.4\Sas.exe" -sysin "C:\SASTEST.sas" -LOG "C:\DATAM\SASTEST.log" -NOSPLASH -NOLOGO -ICON&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for any assistance you can provide me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 21:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360134#M8669</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2017-05-19T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: run sas.exe in background on windows server 2012 R2</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360146#M8670</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/49478"&gt;@BonnaryW&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;1. Does the batch command work when you execute it out of a command prompt?&lt;/P&gt;
&lt;P&gt;2. Has the scheduler ever executed it? What does the history tell you? &amp;nbsp;&lt;A href="https://technet.microsoft.com/en-us/library/cc722006(v=ws.11).aspx" target="_blank"&gt;https://technet.microsoft.com/en-us/library/cc722006(v=ws.11).aspx&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Are you sure the user used for batch processing got all the required permissions to read and write from/to the chosen locations on your disk?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also: I would be using sas.bat from your Lev&amp;lt;n&amp;gt; environment and not directly sas.exe under Foundation so that you get your environment created in the same way than what you're using out of a SAS EG session.&lt;/P&gt;
&lt;P&gt;I would also go for a rollover log so that consecutive executions of your job don't overwrite the log.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Here a batch command which should work once you've amended the paths for your environment.&lt;/P&gt;
&lt;PRE&gt;C:\SAS\config\Lev1\SASApp\sas.bat -sysin "C:\SAS\config\Lev1\SASApp\SASEnvironment\Code\testjob.sas" -logparm "rollover=session" -log "C:\SAS\config\Lev1\SASApp\SASEnvironmentLogs\testjob_#Y.#m.#d_#H.#M.#s.log" -print "C:\SAS\config\Lev1\SASApp\SASEnvironment\Output\testjob_#Y.#m.#d_#H.#M.#s.lst" -noterminal -batch -icon -nosplash -metauser "&amp;lt;user&amp;gt;" -metapass "&amp;lt;credentials&amp;gt;&lt;/PRE&gt;
&lt;P&gt;Depending on your environement you probably don't need options &lt;EM&gt;-metauser&lt;/EM&gt; and &lt;EM&gt;-metapass&lt;/EM&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 22:51:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360146#M8670</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2017-05-19T22:51:16Z</dc:date>
    </item>
    <item>
      <title>Re: run sas.exe in background on windows server 2012 R2</title>
      <link>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360148#M8671</link>
      <description>&lt;P&gt;Thank you so much Patrick.&amp;nbsp; I will give it a try.&lt;/P&gt;</description>
      <pubDate>Fri, 19 May 2017 22:59:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Administration-and-Deployment/run-sas-exe-in-background-on-windows-server-2012-R2/m-p/360148#M8671</guid>
      <dc:creator>BonnaryW</dc:creator>
      <dc:date>2017-05-19T22:59:05Z</dc:date>
    </item>
  </channel>
</rss>

