<?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 program to execute multiple SAS programs in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450722#M113523</link>
    <description>&lt;P&gt;LRECL is not a restriction on the number of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a restriction on the number of characters on a single line of code. Are you writing code that has 6000 characters on one line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think %include will work fine.&lt;/P&gt;</description>
    <pubDate>Tue, 03 Apr 2018 15:54:41 GMT</pubDate>
    <dc:creator>PaigeMiller</dc:creator>
    <dc:date>2018-04-03T15:54:41Z</dc:date>
    <item>
      <title>SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450716#M113520</link>
      <description>&lt;P&gt;Is there a way to execute multiple SAS programs from one program with the use of macro variables in the path and the log?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I want dynamic dates in the log name&lt;/P&gt;&lt;P&gt;2. The location where the program resides and the log locations are different and both should employ a macro variable.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;To achieve this, if I use a call command, I am guessing I cannot use dynamic paths or dates. If I use a %include statement, there is a restriction on the number of characters (LRECL should be &amp;lt;=6000).&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any way to trigger them in data null step or using a macro?&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:50:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450716#M113520</guid>
      <dc:creator>visa</dc:creator>
      <dc:date>2018-04-03T15:50:01Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450718#M113521</link>
      <description>&lt;BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;If I use a %include statement, there is a restriction on the number of characters (LRECL should be &amp;lt;=6000).&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;/BLOCKQUOTE&gt;
&lt;P&gt;&lt;SPAN&gt;You have lines with more than 6000 characters? That seems like a problem in itself. %INCLUDE is always the method I've used.&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Use PROC PRINTTO in your programs for the log and add the date using %SYSFUNC().&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:52:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450718#M113521</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-03T15:52:57Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450722#M113523</link>
      <description>&lt;P&gt;LRECL is not a restriction on the number of characters.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;It is a restriction on the number of characters on a single line of code. Are you writing code that has 6000 characters on one line?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I think %include will work fine.&lt;/P&gt;</description>
      <pubDate>Tue, 03 Apr 2018 15:54:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/450722#M113523</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2018-04-03T15:54:41Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451131#M113684</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza&lt;/a&gt;&amp;nbsp;My bad, I thought the restriction was overall. Thank you very much for your suggestions&lt;/P&gt;&lt;P&gt;I used %include but there are two issues I am facing. (I am running using putty)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. I used Printto, but the log file has only "Notes:" but doesn't show the actual lines of the code in log. Is that supposed to be that way? Usually on a log we see both lines of code and the Notes and Warnings.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;2. If there is a Proc Import step in the sas program that we are calling using %include, the main program doesn't seem to run at all. It runs for a long time, the log file also stands still. Sample proc import that has been used:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;&lt;STRONG&gt;PROC&lt;/STRONG&gt;&lt;/FONT&gt; &lt;STRONG&gt;&lt;FONT color="#000080" face="Courier New" size="3"&gt;IMPORT&lt;/FONT&gt;&lt;/STRONG&gt; &lt;FONT color="#0000ff" face="Courier New" size="3"&gt;OUT&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt; = WORK.ABC&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DATAFILE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;= &lt;/FONT&gt;&lt;FONT color="#800080" face="Courier New" size="3"&gt;"&amp;amp;path./ABC.xlsx"&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;DBMS&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;=XLSX &lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT color="#0000ff" face="Courier New" size="3"&gt;REPLACE&lt;/FONT&gt;&lt;FONT face="Courier New" size="3"&gt;;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 14:58:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451131#M113684</guid>
      <dc:creator>visa</dc:creator>
      <dc:date>2018-04-04T14:58:16Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451140#M113686</link>
      <description>&lt;P&gt;Check the documentation for %INCLUDE, I think there's an option you can set to have the code printed in the log as well as the notes and such.&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:05:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451140#M113686</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-04T15:05:13Z</dc:date>
    </item>
    <item>
      <title>Re: SAS program to execute multiple SAS programs</title>
      <link>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451141#M113687</link>
      <description>&lt;P&gt;And your PROC IMPORT is missing the RUN which is why it's hanging - SAS is waiting for it to terminate and you don't have a termination.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 04 Apr 2018 15:06:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/SAS-program-to-execute-multiple-SAS-programs/m-p/451141#M113687</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-04-04T15:06:28Z</dc:date>
    </item>
  </channel>
</rss>

