<?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: %include stops .. need help please in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/237921#M55390</link>
    <description>&lt;P&gt;In case anyone else has this problem, I figured out one potential cause and solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the program that the %include called, I'd commented out the end of my code using "/*". Since it was the end of the program, I'd not closed the block comments with a matching "*/". This was causing the parent program to have subsequent code commented out.&lt;/P&gt;</description>
    <pubDate>Fri, 04 Dec 2015 23:30:51 GMT</pubDate>
    <dc:creator>KWhalen</dc:creator>
    <dc:date>2015-12-04T23:30:51Z</dc:date>
    <item>
      <title>%include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25572#M5782</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So I am using a master file that contains about 6 %include statements calling my bigger sas programs.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%include(C:\program1.sas);&lt;/P&gt;&lt;P&gt;%include(C:\program2.sas);&lt;/P&gt;&lt;P&gt;%include(C:\program3.sas);&lt;/P&gt;&lt;P&gt;%include(C:\program4.sas);&lt;/P&gt;&lt;P&gt;%include(C:\program5.sas);&lt;/P&gt;&lt;P&gt;%include(C:\program6.sas);&lt;/P&gt;&lt;P&gt;etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem is that when I run this master file SAS stops working after the first few programs and just ignores the rest of the file.... no errors are seen in the log either...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I fix this problem?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:01:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25572#M5782</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-03-08T16:01:55Z</dc:date>
    </item>
    <item>
      <title>%include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25573#M5783</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A first possibility I can think of is the SAS hasn't stopped running but is waiting for a quit statement.&amp;nbsp; If so, if you run each of the programs manually in order without using an include statement you may be able to see where it is waiting for an exiting statement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:07:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25573#M5783</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-03-08T16:07:34Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25574#M5784</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Stops working is not very specific.&amp;nbsp; If these are independent programs I would run them all separately using SYSTASK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:26:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25574#M5784</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2012-03-08T16:26:27Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25575#M5785</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Programs run fine on their own. So this has to be a problem with the include. There are no errors or missing parts.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 16:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25575#M5785</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-03-08T16:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25576#M5786</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You might also check the line lengths on the programs.&amp;nbsp; Perhaps SAS is truncating some lines when using&amp;nbsp; %INC that are not truncated when it is the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you run them one by one in the same SAS sessions without errors?&amp;nbsp; Perhaps some options, macro variables, librefs , work datasets create by one of the earlier programs is causing the later programs to execute differently than they do if run individually.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 17:18:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25576#M5786</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-03-08T17:18:09Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25577#M5787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm with data _null_ that if these are independent programs using SYSTASK would be the right thing to do (and you could even run your programs in parallel).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to stick with %include then below options could help:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;options s=0 s2=0 source2;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first two options set the allowed code line length to the maximum, source2 shows you the code of "includes" in the log which makes debugging easier.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 18:35:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25577#M5787</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-08T18:35:24Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25578#M5788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using &lt;SPAN style="background-color: #ffffff;"&gt;options did not solve the issue. I am curious on systask... can you provide example of how I can write the code? I have no idea how it works...&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 19:20:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25578#M5788</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-03-08T19:20:08Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25579#M5789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SYSTASK &lt;/P&gt;&lt;P&gt;For UNIX&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#a001215125.htm"&gt;http://support.sas.com/documentation/cdl/en/hostunx/61879/HTML/default/viewer.htm#a001215125.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Windows&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-stmt-systask.htm"&gt;http://support.sas.com/documentation/cdl/en/hostwin/63285/HTML/default/viewer.htm#win-stmt-systask.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And here examples of how to use systask to start SAS jobs:&lt;/P&gt;&lt;P&gt;&lt;A href="http://support.sas.com/kb/6/814.html"&gt;http://support.sas.com/kb/6/814.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/sugi30/021-30.pdf"&gt;http://www2.sas.com/proceedings/sugi30/021-30.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 19:39:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25579#M5789</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-08T19:39:46Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25580#M5790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Using &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #eef4f9;"&gt;%include C:\program1.sas&lt;/SPAN&gt; / lrecl=32767; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; seems to solve the problem for a few but this still happenes in the later programs... maybe this can help diagnose the problem better?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 08 Mar 2012 20:13:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25580#M5790</guid>
      <dc:creator>vomer</dc:creator>
      <dc:date>2012-03-08T20:13:12Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25581#M5791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt; There are length limitations for source code documented. What limitations there are depends on your OS and SAS version (what do you have).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For debugging I would first try and figure out which %include is the first one no more working. Then I would run only this %include and see if the problem persists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it is a code line length issue: Could you please explain how it comes that your code is all on one line. Could you also explain how you run your code (both separately and via %include statement). Are you using for both the same environment and client?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 10 Mar 2012 01:49:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/25581#M5791</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2012-03-10T01:49:49Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/237921#M55390</link>
      <description>&lt;P&gt;In case anyone else has this problem, I figured out one potential cause and solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In the program that the %include called, I'd commented out the end of my code using "/*". Since it was the end of the program, I'd not closed the block comments with a matching "*/". This was causing the parent program to have subsequent code commented out.&lt;/P&gt;</description>
      <pubDate>Fri, 04 Dec 2015 23:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/237921#M55390</guid>
      <dc:creator>KWhalen</dc:creator>
      <dc:date>2015-12-04T23:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/273323#M58437</link>
      <description>&lt;P&gt;hi, did you figure it out? I met the same problem. Could you kindly let me know how to solve it? Thank you very much!&lt;/P&gt;</description>
      <pubDate>Thu, 26 May 2016 17:13:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/273323#M58437</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2016-05-26T17:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/274422#M58498</link>
      <description>&lt;P&gt;Yep-if you're using a %include, and it's mysteriously not running anything after what's in the called-in program, check the called-program for a comment that isn't closed at the end of the code.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:09:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/274422#M58498</guid>
      <dc:creator>KWhalen</dc:creator>
      <dc:date>2016-06-01T17:09:40Z</dc:date>
    </item>
    <item>
      <title>Re: %include stops .. need help please</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/274426#M58499</link>
      <description>&lt;P&gt;Thank you very much!&lt;/P&gt;</description>
      <pubDate>Wed, 01 Jun 2016 17:14:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/include-stops-need-help-please/m-p/274426#M58499</guid>
      <dc:creator>anonymous_user</dc:creator>
      <dc:date>2016-06-01T17:14:40Z</dc:date>
    </item>
  </channel>
</rss>

