<?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: SAS Studio Batch submit multiple files with individual logs in SAS Studio</title>
    <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424051#M4240</link>
    <description>&lt;P&gt;Using this call:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;"C:\Program Files\SASHome\SASFoundation\9.4"&lt;/FONT&gt;&amp;nbsp; -SYSIN&amp;nbsp; "C:\Users\Desktop\QC_d0_DM.sas" -log "C:\Users\Desktop\QC_DM.log"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part in red was found with SAS Studio, using the function %sysget(sasroot). However, I don't have the folder SASFoundation. I am not the administrator of SAS (our IT team is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17564iDC0C3CEE89B46982/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help &amp;amp; patience!&lt;/P&gt;</description>
    <pubDate>Fri, 29 Dec 2017 16:02:36 GMT</pubDate>
    <dc:creator>Gen2514</dc:creator>
    <dc:date>2017-12-29T16:02:36Z</dc:date>
    <item>
      <title>SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423925#M4232</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;I am a former&amp;nbsp;Base SAS user, now using SAS Studio and struggling with the batch submit function. For my work, I need to batch submit multiple files and create individual .lst and .log files. For example, if I need to run 20 files, I need 20 .log and 20 .lst files. Is it possible to do that in SAS Studio 3.6?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;One solution is to manually batch submit the multiple files but this would take too long for us.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Another solution is to batch submit a new program which includes the call of the multiple programs. However, this would create only 1 log and 1 .lst and this is not what we are looking for.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:07:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423925#M4232</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-28T17:07:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423932#M4233</link>
      <description>&lt;P&gt;If you're using SAS Studio, you're still&amp;nbsp; Base SAS user. :&lt;img id="smileyhappy" class="emoticon emoticon-smileyhappy" src="https://communities.sas.com/i/smilies/16x16_smiley-happy.png" alt="Smiley Happy" title="Smiley Happy" /&gt; I assume you mean you are a former PC SAS (i.e. Display Manager) user?&amp;nbsp; When you were using PC SAS, how would you accomplish this goal?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Assuming XCMD is enabled in your SAS session, I would think you could write a SAS program that uses the SYSTASK to start 20 different SAS sessions, each&amp;nbsp;session with it's own log and list file.&amp;nbsp; See e.g. &lt;A href="https://amadeus.co.uk/sas-tips/systask-the-spawn-of-sas-programmers/" target="_blank"&gt;https://amadeus.co.uk/sas-tips/systask-the-spawn-of-sas-programmers/&lt;/A&gt; .&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:44:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423932#M4233</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-12-28T17:44:29Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423934#M4234</link>
      <description>&lt;P&gt;Yes, you're right, a former PC SAS &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; With PC SAS, I would have used .BAT files.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your solution, I will have a look at it!&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 17:47:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423934#M4234</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-28T17:47:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423942#M4235</link>
      <description>&lt;P&gt;If your SAS studio client is connecting to a Windows server, then a .BAT file might still be an option. If you're connecting to a Linux server, then there are analogous shell scripting options.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Dec 2017 18:27:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423942#M4235</guid>
      <dc:creator>Quentin</dc:creator>
      <dc:date>2017-12-28T18:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423995#M4236</link>
      <description>&lt;P&gt;Hi again!&lt;/P&gt;&lt;P&gt;Could you help me check if the XCMD is enabled on my SAS Studio? I am pretty&amp;nbsp;sure it&amp;nbsp;isn't since&amp;nbsp;it is the default for SAS Studio.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I have tried the .BAT and it does not recognize the&amp;nbsp;SAS root. Here is what I ran:&lt;/P&gt;&lt;P&gt;"C:\Program Files\SASFoundation\9.4"&amp;nbsp; -SYSIN&amp;nbsp; "C:\Users\Desktop\QC_d0_DM.sas" -log "C:\Users\Desktop\QC_DM.log"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 03:12:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/423995#M4236</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-29T03:12:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424006#M4237</link>
      <description>&lt;P&gt;Which operating system is your SAS server running on?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 07:13:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424006#M4237</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-29T07:13:55Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424030#M4238</link>
      <description>&lt;P&gt;Here is my SAS information&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 548px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17562i565D2F799431A9AC/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424030#M4238</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-29T13:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424033#M4239</link>
      <description>&lt;P&gt;So your SAS runs on Windows, and the .bat approach should work. How did you find out that your SAS call was incorrect?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Since you have a client-server setup, I'd prefer to use the sasbatch.sh script in sasroot\Lev1\SASApp\BatchServer. That gives you the same environment you have in SAS Studio.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 13:18:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424033#M4239</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-29T13:18:32Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424051#M4240</link>
      <description>&lt;P&gt;Using this call:&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;&lt;FONT color="#FF0000"&gt;"C:\Program Files\SASHome\SASFoundation\9.4"&lt;/FONT&gt;&amp;nbsp; -SYSIN&amp;nbsp; "C:\Users\Desktop\QC_d0_DM.sas" -log "C:\Users\Desktop\QC_DM.log"&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;The part in red was found with SAS Studio, using the function %sysget(sasroot). However, I don't have the folder SASFoundation. I am not the administrator of SAS (our IT team is).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="Untitled.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/17564iDC0C3CEE89B46982/image-size/large?v=v2&amp;amp;px=999" role="button" title="Untitled.png" alt="Untitled.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you for your help &amp;amp; patience!&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 16:02:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424051#M4240</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-29T16:02:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424063#M4241</link>
      <description>&lt;P&gt;This looks like your local directory on your desktop PC. The server's sasroot will have quite more than just SASFoundation added.&lt;/P&gt;
&lt;P&gt;If you have XCMD enabled, you can test your script like that:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename osmcd pipe '"C:\Program Files\SASHome\SASFoundation\9.4"  -SYSIN  "C:\Users\Desktop\QC_d0_DM.sas" -log "C:\Users\Desktop\QC_DM.log 2&amp;gt;&amp;amp;1';

data _null_;
infile oscmd;
input;
put _infile_;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The SAS log will contain all responses from the operating system.&lt;/P&gt;
&lt;P&gt;Mind that you most probably won't have permission to store your code (and log) in C:\Users\Desktop, so you need to use another path when storing/uploading your code to the server.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 17:21:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424063#M4241</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-29T17:21:51Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424066#M4242</link>
      <description>&lt;P&gt;The XCMD is not enabled, so I cannot test it. Could it be the reason why the .bat is not working?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I will have to check with IT if it is possible to enable it.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 18:05:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424066#M4242</guid>
      <dc:creator>Gen2514</dc:creator>
      <dc:date>2017-12-29T18:05:34Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424074#M4243</link>
      <description>&lt;P&gt;So you tried to run SAS locally (which can't work, for obvious reasons), or did you log on to the server with a commandline tool?&lt;/P&gt;</description>
      <pubDate>Fri, 29 Dec 2017 20:21:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/424074#M4243</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-12-29T20:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: SAS Studio Batch submit multiple files with individual logs</title>
      <link>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/426658#M4300</link>
      <description>&lt;P&gt;Here are instructions to enable XCMD on SAS Studio Basic if your IT will allow it:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="http://go.documentation.sas.com/?activeCdc=webeditorcdc&amp;amp;cdcId=sasstudiocdc&amp;amp;cdcVersion=3.71&amp;amp;docsetId=webeditorag&amp;amp;docsetTarget=p0awzsi827nb5qn100slqvn31q61.htm&amp;amp;locale=en" target="_blank"&gt;SAS Studio Administrator's Guide &amp;gt; SAS Studio Basic &amp;gt; Enabling the X Commands&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Essentially the admin of the instance will need to recreate the spawner service with the -allowxcmd option.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 10 Jan 2018 21:11:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Studio/SAS-Studio-Batch-submit-multiple-files-with-individual-logs/m-p/426658#M4300</guid>
      <dc:creator>shayne</dc:creator>
      <dc:date>2018-01-10T21:11:20Z</dc:date>
    </item>
  </channel>
</rss>

