<?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 How to Batch Two SAS Files Sequentially? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678530#M204803</link>
    <description>&lt;P&gt;I want to run the following &lt;EM&gt;a.sas&lt;/EM&gt; and &lt;EM&gt;b.sas&lt;/EM&gt; in a sequential way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
a=1;
run;
proc export file="!userprofile\desktop\a.csv";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b;
b=1;
run;
proc export file="!userprofile\desktop\b.csv";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I wrote a batch file &lt;EM&gt;ab.bat&lt;/EM&gt; to run them and found that this batch opens the second parallel SAS session before finishing the first one.&lt;/P&gt;&lt;PRE&gt;"%programfiles%\sashome\sasfoundation\9.4\sas" %userprofile%\desktop\a.sas -nolog
"%programfiles%\sashome\sasfoundation\9.4\sas" %userprofile%\desktop\b.sas -nolog&lt;/PRE&gt;&lt;P&gt;Unlike this MWE, my SAS files are dependent. How can I run the two SAS files non-simultaneously?&lt;/P&gt;</description>
    <pubDate>Fri, 21 Aug 2020 18:01:20 GMT</pubDate>
    <dc:creator>Junyong</dc:creator>
    <dc:date>2020-08-21T18:01:20Z</dc:date>
    <item>
      <title>How to Batch Two SAS Files Sequentially?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678530#M204803</link>
      <description>&lt;P&gt;I want to run the following &lt;EM&gt;a.sas&lt;/EM&gt; and &lt;EM&gt;b.sas&lt;/EM&gt; in a sequential way.&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data a;
a=1;
run;
proc export file="!userprofile\desktop\a.csv";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b;
b=1;
run;
proc export file="!userprofile\desktop\b.csv";
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;I wrote a batch file &lt;EM&gt;ab.bat&lt;/EM&gt; to run them and found that this batch opens the second parallel SAS session before finishing the first one.&lt;/P&gt;&lt;PRE&gt;"%programfiles%\sashome\sasfoundation\9.4\sas" %userprofile%\desktop\a.sas -nolog
"%programfiles%\sashome\sasfoundation\9.4\sas" %userprofile%\desktop\b.sas -nolog&lt;/PRE&gt;&lt;P&gt;Unlike this MWE, my SAS files are dependent. How can I run the two SAS files non-simultaneously?&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:01:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678530#M204803</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-08-21T18:01:20Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Two SAS Files Sequentially?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678534#M204805</link>
      <description>&lt;P&gt;If you don't want to put all of the code in a single file you can use a single program to include the program files. Basically a single program file that looks like the following (where path is appropriate for your operating system). The path is generally best if starting at a drive or disk mount and not a relative path.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;%include "&amp;lt;path&amp;gt;\a.sas";&lt;/P&gt;
&lt;P&gt;%include "&amp;lt;path&amp;gt;\b.sas";&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 18:07:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678534#M204805</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-08-21T18:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: How to Batch Two SAS Files Sequentially?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678554#M204814</link>
      <description>&lt;P&gt;Thanks, but I wondered if I can do this with batch files due to &lt;A href="https://communities.sas.com/t5/SAS-Programming/Modularizing-or-Isolating-SAS-Programs/m-p/618214" target="_blank" rel="noopener"&gt;this reason&lt;/A&gt;—to avoid possible interference.&lt;/P&gt;</description>
      <pubDate>Fri, 21 Aug 2020 19:17:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-Batch-Two-SAS-Files-Sequentially/m-p/678554#M204814</guid>
      <dc:creator>Junyong</dc:creator>
      <dc:date>2020-08-21T19:17:09Z</dc:date>
    </item>
  </channel>
</rss>

