<?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: what in this code would cause the error 'there was 1 unclosed do block'? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118965#M24508</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the code for the other macro you call?&amp;nbsp; You didn't include it?&amp;nbsp; Also, when you call a macro, the line shouldn't end with a semicolon.&lt;/P&gt;&lt;P&gt;Yes, your understanding is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 18 May 2012 12:24:57 GMT</pubDate>
    <dc:creator>art297</dc:creator>
    <dc:date>2012-05-18T12:24:57Z</dc:date>
    <item>
      <title>what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118958#M24501</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;one do one end .....is there something else needed to&amp;nbsp; close this do block?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;data&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; da;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;merge&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; output.da_med (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=in1) output.da_rx (&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;in&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;=in2); &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*merge the ones and zeroes produced by CDPS and MRX above;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;by&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; recipno;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; _n_ = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; weight_dac; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*insert the weights on every record;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; aidcat = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'DA'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %&lt;STRONG&gt;&lt;EM&gt;bridge&lt;/EM&gt;&lt;/STRONG&gt;; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*run the bridge code macro;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*set up arrays to facilitate multiplication of a large list of variables;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ind&lt;LI&gt; &amp;amp;&lt;/LI&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;list.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; CCARVH CCARM CCNSH CPULVH CPULH CGIH CMETH CHIVM CINFM CHEMEH ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; fac&lt;LI&gt; &amp;amp;&lt;/LI&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;factors.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; CCARVH_fac CCARM_fac CCNSH_fac CPULVH_fac CPULH_fac CGIH_fac CMETH_fac CHIVM_fac&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&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;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; CINFM_fac CHEMEH_fac;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; risk_score = intercept_fac; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*intercept must be added to every risk score;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; i = &lt;/SPAN&gt;&lt;STRONG style="color: teal; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;1&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; dim(fac);&lt;/SPAN&gt;&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; &lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;*cycle through all the 1/0s and factors, multiply them together, and add them to the risk score field;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; risk_score = risk_score + ind&lt;I&gt; * fac&lt;I&gt;;&lt;/I&gt;&lt;/I&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; intercept_fac &amp;amp;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: teal; font-size: 10pt;"&gt;factors.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; i CCARVH_fac CCARM_fac CCNSH_fac CPULVH_fac CPULH_fac CGIH_fac CMETH_fac CHIVM_fac&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&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; CINFM_fac CHEMEH_fac aid;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;Thx&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 12:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118958#M24501</guid>
      <dc:creator>diva_di_dati</dc:creator>
      <dc:date>2012-05-17T12:57:06Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118959#M24502</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We can't provide an answer, you haven't shown us what is in %bridge&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 13:04:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118959#M24502</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-05-17T13:04:05Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118960#M24503</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Run the code with OPTIONS MPRINT to see if there's anothe DO block in any of your macros.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BTW, becareful habitually ending references to macro variables with a period when you aren't actually concatenating something.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:11:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118960#M24503</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-17T18:11:36Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118961#M24504</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the full code-thank you for your efforts...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:36:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118961#M24504</guid>
      <dc:creator>diva_di_dati</dc:creator>
      <dc:date>2012-05-17T18:36:51Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118962#M24505</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great, so somewhere in %bridge, there is an unclosed do block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your task is then to go through %bridge and figure out where this unclosed do block is.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2012 18:42:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118962#M24505</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-05-17T18:42:40Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118963#M24506</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Agreed with PaigeMiller, I think in the last line of Bridge some problem is there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 06:43:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118963#M24506</guid>
      <dc:creator>falguni_mathther</dc:creator>
      <dc:date>2012-05-18T06:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118964#M24507</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ok, that is what I am asking about...I can't find it....I think I have matched up all of the do and ends.....am I matching up the wrong things......I thought a do block started with 'do' and ended with 'end'&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 12:08:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118964#M24507</guid>
      <dc:creator>diva_di_dati</dc:creator>
      <dc:date>2012-05-18T12:08:14Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118965#M24508</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What about the code for the other macro you call?&amp;nbsp; You didn't include it?&amp;nbsp; Also, when you call a macro, the line shouldn't end with a semicolon.&lt;/P&gt;&lt;P&gt;Yes, your understanding is correct.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 12:24:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118965#M24508</guid>
      <dc:creator>art297</dc:creator>
      <dc:date>2012-05-18T12:24:57Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118966#M24509</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THx, I will check it again&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 17:35:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118966#M24509</guid>
      <dc:creator>diva_di_dati</dc:creator>
      <dc:date>2012-05-18T17:35:52Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118967#M24510</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you're absolutely stuck and can't find the end to match a do, start numbering them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do start=1 to 20; /*1*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; some code...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; do test=1 to 50; /*2*/&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; some more code...;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;/*2*/&lt;/P&gt;&lt;P&gt;end;/*1*/&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 18:02:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118967#M24510</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-05-18T18:02:37Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118968#M24511</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I ran a piece of code using 1 for the value of all of the&amp;nbsp; variables and &lt;STRONG&gt;only &lt;/STRONG&gt;the BRIDGE macro as shown in your attachment and did not get any message about unclosed do loop (see code at bottom).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At this point point I would start with the offending datastep and comment out all the statements and the add them back in one at a time (with loops the start and end count as one statement for this process - but do run with the stuff inside the loops commented out).&lt;/P&gt;&lt;P&gt;I would also make sure the other macros CDPS and MRX do not contain definitions of or modify the BRIDGE macro.&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 8pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data junk; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Retain &amp;amp;list &amp;amp;factors 1; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;aidcat = 'DA'; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;%bridge &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;run; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 18 May 2012 21:10:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118968#M24511</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2012-05-18T21:10:28Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118969#M24512</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with 'ballardw'&amp;nbsp; looks to me like there must be somethign in one of the other macros. Try addoingthe code&amp;nbsp; 'OPTIONS MACROGEN; ' at the befinning of your program (you can turn it off later by saying 'OPTIONS NOMACROGEN;' ) and the code generated in the called macros will be put on your log.&amp;nbsp; Then post the log here and we'll check it again?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 19 May 2012 23:43:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118969#M24512</guid>
      <dc:creator>nancy88wilson</dc:creator>
      <dc:date>2012-05-19T23:43:44Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118970#M24513</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The lines in that file are way too long for human consumption.&lt;/P&gt;&lt;P&gt;And SAS might even have trouble with them depending on the version you are using and the settings.&lt;/P&gt;&lt;P&gt;I suspect that some lines are being truncated. &lt;/P&gt;&lt;P&gt;Especially because the %BRIDGE macro has a couple of END statements out past column 165!!!!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 00:09:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118970#M24513</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2012-05-21T00:09:56Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118971#M24514</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I agree with Tom&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While the problem may or may not be in %Bridge, the way things are written, in one long line "way too long for human consumption", the appearance of the code hinders debugging and understanding. This code ought to be one command per line, and properly indented. My eyes are not used to looking at code written like this, it hurts my brain to look at code written like this, and so even though I was being unhelpful, I didn't even try to see if I could find a problem in this code.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 11:45:08 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118971#M24514</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2012-05-21T11:45:08Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118972#M24515</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;that is a great idea!&amp;nbsp; thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 16:54:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118972#M24515</guid>
      <dc:creator>diva_di_dati</dc:creator>
      <dc:date>2012-05-21T16:54:05Z</dc:date>
    </item>
    <item>
      <title>Re: what in this code would cause the error 'there was 1 unclosed do block'?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118973#M24516</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have SAS Enterprise Guide 4.3 or 5.1, you might try running this (and the macros that it references) through the code formatter:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="active_link" href="http://blogs.sas.com/content/sasdummy/2010/12/23/the-sas-code-formatter-more-than-a-pretty-face/"&gt;http://blogs.sas.com/content/sasdummy/2010/12/23/the-sas-code-formatter-more-than-a-pretty-face/&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 21 May 2012 17:17:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/what-in-this-code-would-cause-the-error-there-was-1-unclosed-do/m-p/118973#M24516</guid>
      <dc:creator>ChrisHemedinger</dc:creator>
      <dc:date>2012-05-21T17:17:34Z</dc:date>
    </item>
  </channel>
</rss>

