<?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: Running all the programs in a directory in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304369#M65152</link>
    <description>&lt;P&gt;Do they have to run in a certain order, or will any order be sufficient?&lt;/P&gt;</description>
    <pubDate>Thu, 13 Oct 2016 14:15:32 GMT</pubDate>
    <dc:creator>Astounding</dc:creator>
    <dc:date>2016-10-13T14:15:32Z</dc:date>
    <item>
      <title>Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304366#M65151</link>
      <description>&lt;P&gt;Dear experts,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I'd like to run all the programs (110) in a directory on my pc with a single instruction.&lt;/P&gt;
&lt;P&gt;How could I do it with %include, or some other code?&lt;/P&gt;
&lt;P&gt;The programs have different names and are very long. I'd like not to write them all in the enhanced editor, neither to write all their names...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Many thanks to all.&lt;/P&gt;
&lt;P&gt;Daniela&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:10:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304366#M65151</guid>
      <dc:creator>Daniela_P</dc:creator>
      <dc:date>2016-10-13T14:10:38Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304369#M65152</link>
      <description>&lt;P&gt;Do they have to run in a certain order, or will any order be sufficient?&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:15:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304369#M65152</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-10-13T14:15:32Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304376#M65153</link>
      <description>&lt;P&gt;%include is likely to be your best bet.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;And you shouldn't have to type anything as any file manager worth it's name should let you copy and paste path and/or file names.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;An exercise for the interested reader is to use a FILENAME that consistis of and operating system command to pipe the name of the files using something like DIR c:\path\*.SAS to a data step and then use Call Execute to do the include. NOTE: DO not save the resulting program in the same folder as future runs could create multiple references (or use logic to explicitly NOT use that file for the %include).&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 17:29:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304376#M65153</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-10-13T17:29:49Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304385#M65154</link>
      <description>&lt;P&gt;Its rarely as simple as pulling in a directory listing and including each file. &amp;nbsp;What about interdependancies? &amp;nbsp;How to QC? &amp;nbsp;Where to send outputs? &amp;nbsp;How to check inputs etc.&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 14:58:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304385#M65154</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-10-13T14:58:37Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304411#M65155</link>
      <description>&lt;P&gt;...any order is good&lt;/P&gt;</description>
      <pubDate>Thu, 13 Oct 2016 16:04:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304411#M65155</guid>
      <dc:creator>Daniela_P</dc:creator>
      <dc:date>2016-10-13T16:04:33Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304546#M65156</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;filename x 'c:\temp\*.sas';
%include x/source2;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 14 Oct 2016 06:28:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304546#M65156</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-10-14T06:28:08Z</dc:date>
    </item>
    <item>
      <title>Re: Running all the programs in a directory</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304672#M65157</link>
      <description>&lt;P&gt;Thank you very much,&lt;/P&gt;
&lt;P&gt;it worked!&lt;/P&gt;
&lt;P&gt;Daniela&lt;/P&gt;</description>
      <pubDate>Fri, 14 Oct 2016 14:07:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Running-all-the-programs-in-a-directory/m-p/304672#M65157</guid>
      <dc:creator>Daniela_P</dc:creator>
      <dc:date>2016-10-14T14:07:58Z</dc:date>
    </item>
  </channel>
</rss>

