<?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: ERROR 117-185: There was 1 unclosed DO block. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447303#M112330</link>
    <description>yes I will read them at other leisure time..would you please fix the code ,I need to offer it first..</description>
    <pubDate>Wed, 21 Mar 2018 02:33:03 GMT</pubDate>
    <dc:creator>Geo-</dc:creator>
    <dc:date>2018-03-21T02:33:03Z</dc:date>
    <item>
      <title>ERROR 117-185: There was 1 unclosed DO block.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447298#M112326</link>
      <description>&lt;P&gt;data _null_;&lt;/P&gt;&lt;P&gt;if month(today())=1 then&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do;&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; proc sql noprint;&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;&amp;nbsp;&amp;nbsp; insert into table1(date,tag)&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;&amp;nbsp;&amp;nbsp; set date=today(),&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; tag=0;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;else;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do;&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; %put @@@@@NO NEED TO INSERT@@@@@@;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;There was 1 unclosed DO block,but I can't find it..how to fix?thanks!&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 02:18:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447298#M112326</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-03-21T02:18:08Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 117-185: There was 1 unclosed DO block.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447299#M112327</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184018"&gt;@Geo-&lt;/a&gt;&lt;/P&gt;
&lt;P&gt;1. You can't mix a SAS data step with a Proc SQL.&lt;/P&gt;
&lt;P&gt;2. A macro %put statement used in a SAS data step Do Loop won't work as you believe.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Also based on your other post: You need to read-up a bit how SAS Macro processing works and how it relates to SAS data and Proc steps as it clearly shows that you haven't grasped the concept yet.&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 02:21:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447299#M112327</guid>
      <dc:creator>Patrick</dc:creator>
      <dc:date>2018-03-21T02:21:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 117-185: There was 1 unclosed DO block.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447303#M112330</link>
      <description>yes I will read them at other leisure time..would you please fix the code ,I need to offer it first..</description>
      <pubDate>Wed, 21 Mar 2018 02:33:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447303#M112330</guid>
      <dc:creator>Geo-</dc:creator>
      <dc:date>2018-03-21T02:33:03Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 117-185: There was 1 unclosed DO block.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447306#M112333</link>
      <description>&lt;P&gt;To build upon what you already have:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;DIV class="lia-quilt-column lia-quilt-column-20 lia-quilt-column-right lia-quilt-column-main-right"&gt;
&lt;DIV class="lia-quilt-column-alley lia-quilt-column-alley-right"&gt;
&lt;DIV id="messagebodydisplay_0" class="lia-message-body"&gt;
&lt;DIV class="lia-message-body-content"&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data _null_;&lt;/P&gt;
&lt;P&gt;if month(today())=1 then call execute(&lt;/P&gt;
&lt;P&gt;&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 'proc sql noprint;&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;&amp;nbsp;&amp;nbsp; insert into table1(date,tag)&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;&amp;nbsp;&amp;nbsp; set date=today(),&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;&amp;nbsp;&amp;nbsp;&amp;nbsp; tag=0;');&lt;/P&gt;
&lt;P&gt;else put&amp;nbsp;'@@@@@NO NEED TO INSERT@@@@@@';&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This not only fixes the unclosed DO block, but corrects a significant number of other errors you would have encountered after the DO block was fixed.&amp;nbsp; I can't promise that your SQL syntax is correct, but you will soon find that out.&amp;nbsp; I just have to assume that it's correct.&lt;/P&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;</description>
      <pubDate>Wed, 21 Mar 2018 02:53:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447306#M112333</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2018-03-21T02:53:47Z</dc:date>
    </item>
    <item>
      <title>Re: ERROR 117-185: There was 1 unclosed DO block.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447362#M112365</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/184018"&gt;@Geo-&lt;/a&gt; wrote:&lt;BR /&gt;yes I will read them at other leisure time..would you please fix the code ,I need to offer it first..&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;From my Maxim 13:&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Never say "I don't have the time to learn that now". The time to learn is NOW.&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 21 Mar 2018 10:31:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/ERROR-117-185-There-was-1-unclosed-DO-block/m-p/447362#M112365</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2018-03-21T10:31:25Z</dc:date>
    </item>
  </channel>
</rss>

