<?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: array question in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18124#M2690</link>
    <description>It's syntax errors like this that I waste HOURS on !   Lol.</description>
    <pubDate>Fri, 16 May 2008 20:17:51 GMT</pubDate>
    <dc:creator>JasonDiVirgilio</dc:creator>
    <dc:date>2008-05-16T20:17:51Z</dc:date>
    <item>
      <title>array question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18122#M2688</link>
      <description>Any idea what is wrong with this code?&lt;BR /&gt;
&lt;BR /&gt;
array region{22} region_1 - region_22;&lt;BR /&gt;
array ais{22} ais_1 - ais_22;&lt;BR /&gt;
array trhead{22}  trhead1-trhead22;&lt;BR /&gt;
do i = 1 to dim(ais) ;&lt;BR /&gt;
       if region(i)='HEAD' then do trhead(i)=ais(i); end;&lt;BR /&gt;
                                       -&lt;BR /&gt;
                                       73&lt;BR /&gt;
ERROR: The variable type of trhead is invalid in this context.&lt;BR /&gt;
ERROR: Illegal reference to the array trhead.&lt;BR /&gt;
ERROR 73-322: Expecting an =.&lt;BR /&gt;
&lt;BR /&gt;
325  end;</description>
      <pubDate>Thu, 15 May 2008 19:19:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18122#M2688</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-15T19:19:49Z</dc:date>
    </item>
    <item>
      <title>Re: array question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18123#M2689</link>
      <description>missing semi-colon after the "then do"&lt;BR /&gt;
Should be "then do;"</description>
      <pubDate>Fri, 16 May 2008 12:50:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18123#M2689</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-16T12:50:58Z</dc:date>
    </item>
    <item>
      <title>Re: array question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18124#M2690</link>
      <description>It's syntax errors like this that I waste HOURS on !   Lol.</description>
      <pubDate>Fri, 16 May 2008 20:17:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18124#M2690</guid>
      <dc:creator>JasonDiVirgilio</dc:creator>
      <dc:date>2008-05-16T20:17:51Z</dc:date>
    </item>
    <item>
      <title>Re: array question</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18125#M2691</link>
      <description>I was taught that rule 1 of SAS programming is "Where is the semicolon?"&lt;BR /&gt;
&lt;BR /&gt;
I counsel people to reread their code and ensure that all between their semicolons is valid SAS code.  I can't count the number of times that going back to rule 1 has allowed me to find an error in my own code.&lt;BR /&gt;
&lt;BR /&gt;
That's my 8 farthings worth.&lt;BR /&gt;
&lt;BR /&gt;
Kind regards&lt;BR /&gt;
&lt;BR /&gt;
David</description>
      <pubDate>Tue, 20 May 2008 02:43:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-question/m-p/18125#M2691</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2008-05-20T02:43:20Z</dc:date>
    </item>
  </channel>
</rss>

