<?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 Illegal reference to the array Symptoms in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361588#M64490</link>
    <description>&lt;P&gt;Can anyone tell me what is wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;334 DATA Felibertiloop; set Felibertiloop;&lt;BR /&gt;335 array Symptoms[3] Symptoms1-Symptoms3;&lt;BR /&gt;336 **Output if all symptoms are missing;&lt;BR /&gt;337 IF max( of Symptoms(*)) = . then output;&lt;BR /&gt;338 ELSE DO I=1 to 3;&lt;BR /&gt;339 **Only output when sides are not missing;&lt;BR /&gt;340 Symptoms=Symptoms(i);&lt;BR /&gt;ERROR: Illegal reference to the array Symptoms.&lt;BR /&gt;341 IF not missing(Symptoms) then output;&lt;BR /&gt;ERROR: Illegal reference to the array Symptoms.&lt;BR /&gt;342 end;&lt;BR /&gt;343 drop i;&lt;BR /&gt;344 RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 25 May 2017 13:31:41 GMT</pubDate>
    <dc:creator>lady8506</dc:creator>
    <dc:date>2017-05-25T13:31:41Z</dc:date>
    <item>
      <title>Illegal reference to the array Symptoms</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361588#M64490</link>
      <description>&lt;P&gt;Can anyone tell me what is wrong here?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;334 DATA Felibertiloop; set Felibertiloop;&lt;BR /&gt;335 array Symptoms[3] Symptoms1-Symptoms3;&lt;BR /&gt;336 **Output if all symptoms are missing;&lt;BR /&gt;337 IF max( of Symptoms(*)) = . then output;&lt;BR /&gt;338 ELSE DO I=1 to 3;&lt;BR /&gt;339 **Only output when sides are not missing;&lt;BR /&gt;340 Symptoms=Symptoms(i);&lt;BR /&gt;ERROR: Illegal reference to the array Symptoms.&lt;BR /&gt;341 IF not missing(Symptoms) then output;&lt;BR /&gt;ERROR: Illegal reference to the array Symptoms.&lt;BR /&gt;342 end;&lt;BR /&gt;343 drop i;&lt;BR /&gt;344 RUN;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:31:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361588#M64490</guid>
      <dc:creator>lady8506</dc:creator>
      <dc:date>2017-05-25T13:31:41Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal reference to the array Symptoms</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361595#M64492</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Symptoms=Symptoms(i);&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;The left side of the assignment misses the necessary index for the array element.&lt;/P&gt;
&lt;P&gt;Same happens in the next line.&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:48:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361595#M64492</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2017-05-25T13:48:58Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal reference to the array Symptoms</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361598#M64494</link>
      <description>&lt;P&gt;Once you have an array named Symptoms, you can't use that name to represent anything else.&amp;nbsp; In this case, you are trying to create a variable named Symptoms as well, which SAS finds illegal.&amp;nbsp; Change the variable name to something else.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;SAS is so fussy about reusing an array name that you would also get an error for this:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;array symptoms {3} symptom1-symptom3;&lt;/P&gt;
&lt;P&gt;array symptoms {3} symptom1-symptom3;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 May 2017 13:50:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361598#M64494</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-05-25T13:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Illegal reference to the array Symptoms</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361615#M64495</link>
      <description>Actually figured it out right after I posted this. Tried to delete post, forgot to press "Confirm". Too late now. Thanks anyway.</description>
      <pubDate>Thu, 25 May 2017 14:15:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Illegal-reference-to-the-array-Symptoms/m-p/361615#M64495</guid>
      <dc:creator>lady8506</dc:creator>
      <dc:date>2017-05-25T14:15:44Z</dc:date>
    </item>
  </channel>
</rss>

