<?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: Exceute the program in a directoty within One sas pgram by %inc in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754922#M238168</link>
    <description>&lt;P&gt;Don't do this in SAS, use a shell script:&lt;/P&gt;
&lt;PRE&gt;for PROGRAM in ${PROGPATH}/*.sas
do
  sas $PROGRAM
done&lt;/PRE&gt;
&lt;P&gt;Add additional options (autoexec, config, log, output location) to the SAS call.&lt;/P&gt;
&lt;P&gt;Running unknown programs in a single SAS instance is dangerous, as one program might change settings (options, libnames, file references, macro variables) and cause unwanted effects in the following codes.&lt;/P&gt;</description>
    <pubDate>Mon, 19 Jul 2021 07:30:09 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2021-07-19T07:30:09Z</dc:date>
    <item>
      <title>Exceute the program in a directoty within One sas pgram by %inc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754916#M238165</link>
      <description>&lt;P&gt;Hello ,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am try to exceute the sas programs in a dircroty by %inc statement.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Requirement : 1) In a dirctory sas program will be genrated based on user input (we don't know number of proagrams&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;and praograsm name )&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;2)&amp;nbsp; Once user genrated sas programs , then exceute those progrms one by one in sas pogram file.&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;3) once the all prograsm exceuted then exit the current program.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you,&lt;/P&gt;&lt;P&gt;Rajasekhar Reddy&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:38:38 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754916#M238165</guid>
      <dc:creator>raja777pharma</dc:creator>
      <dc:date>2021-07-19T06:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: Exceute the program in a directoty within One sas pgram by %inc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754918#M238167</link>
      <description>&lt;P&gt;Without knowing the names and the order in which the programs have to be executed, your task can't be solved.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 06:54:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754918#M238167</guid>
      <dc:creator>andreas_lds</dc:creator>
      <dc:date>2021-07-19T06:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: Exceute the program in a directoty within One sas pgram by %inc</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754922#M238168</link>
      <description>&lt;P&gt;Don't do this in SAS, use a shell script:&lt;/P&gt;
&lt;PRE&gt;for PROGRAM in ${PROGPATH}/*.sas
do
  sas $PROGRAM
done&lt;/PRE&gt;
&lt;P&gt;Add additional options (autoexec, config, log, output location) to the SAS call.&lt;/P&gt;
&lt;P&gt;Running unknown programs in a single SAS instance is dangerous, as one program might change settings (options, libnames, file references, macro variables) and cause unwanted effects in the following codes.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Jul 2021 07:30:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Exceute-the-program-in-a-directoty-within-One-sas-pgram-by-inc/m-p/754922#M238168</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2021-07-19T07:30:09Z</dc:date>
    </item>
  </channel>
</rss>

