<?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 Error: Array subscript out of range in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252541#M56833</link>
    <description>&lt;P&gt;Hello all! I know there are a ton of "subscript out of range" posts on here, but none of them have helped me identify my problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data want;&lt;BR /&gt;data have;&lt;BR /&gt;array barriers(19) $ unawareneed_86 unawarelaterdose_86 unawaretimeplace_86 fearsideeffects_86
		  longdistanceimmsite_86 toobusy_86 nopermission_86 postponed_86 heardneg_86 timeinconvenient_86 
          vaccinatorabsent_86 vaccinena_86 famprob_86 childillnottaken_86 childilltakendidnotreceive_86
		  lackoffaithinimm_86 longwaittime_86 lackoftrustinstaff_86
		  other_86;
array barriercited(19) barriercited1-barriercited19;
		do i=1 to 19;
			if barriers(i)='Yes' then barriercited(i)=1;
			else if barriers(i)='No' then vacchx(i)=0;
	end;
	numberbarriers=sum(of barriercited(*));
run;&lt;/PRE&gt;&lt;P&gt;I keep getting this error: "ERROR: Array subscript out of range at line 13972 column 43" (although the numbers tend to change when I re-run it each time. Hoping fresh eyes will help! Thanks!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Feb 2016 21:24:25 GMT</pubDate>
    <dc:creator>chelsealutz</dc:creator>
    <dc:date>2016-02-25T21:24:25Z</dc:date>
    <item>
      <title>Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252541#M56833</link>
      <description>&lt;P&gt;Hello all! I know there are a ton of "subscript out of range" posts on here, but none of them have helped me identify my problem...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data want;&lt;BR /&gt;data have;&lt;BR /&gt;array barriers(19) $ unawareneed_86 unawarelaterdose_86 unawaretimeplace_86 fearsideeffects_86
		  longdistanceimmsite_86 toobusy_86 nopermission_86 postponed_86 heardneg_86 timeinconvenient_86 
          vaccinatorabsent_86 vaccinena_86 famprob_86 childillnottaken_86 childilltakendidnotreceive_86
		  lackoffaithinimm_86 longwaittime_86 lackoftrustinstaff_86
		  other_86;
array barriercited(19) barriercited1-barriercited19;
		do i=1 to 19;
			if barriers(i)='Yes' then barriercited(i)=1;
			else if barriers(i)='No' then vacchx(i)=0;
	end;
	numberbarriers=sum(of barriercited(*));
run;&lt;/PRE&gt;&lt;P&gt;I keep getting this error: "ERROR: Array subscript out of range at line 13972 column 43" (although the numbers tend to change when I re-run it each time. Hoping fresh eyes will help! Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 21:24:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252541#M56833</guid>
      <dc:creator>chelsealutz</dc:creator>
      <dc:date>2016-02-25T21:24:25Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252544#M56834</link>
      <description>&lt;PRE&gt;else if barriers(i)='No' then &lt;FONT color="#800000"&gt;&lt;STRONG&gt;vacchx(i)=&lt;/STRONG&gt;&lt;/FONT&gt;0;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You're referencing another array that doesn't seem to be declared anywhere.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 21:28:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252544#M56834</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-02-25T21:28:22Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252547#M56835</link>
      <description>&lt;P&gt;I noticed that literally as soon as I posted the discussion - I thought I deleted it. Guess that's what I get for copy/paste. Thanks though!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 21:30:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252547#M56835</guid>
      <dc:creator>chelsealutz</dc:creator>
      <dc:date>2016-02-25T21:30:35Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252551#M56836</link>
      <description>&lt;P&gt;The error messages from an undeclared array are different, though.&lt;/P&gt;
&lt;PRE&gt;ERROR: Undeclared array referenced: vacchx.
ERROR: Variable vacchx has not been declared as an array.&lt;/PRE&gt;
&lt;P&gt;So, I'm not sure how this mistake could explain the "subscript out of range" message.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 21:43:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252551#M56836</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-02-25T21:43:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252562#M56837</link>
      <description>&lt;P&gt;Most likely, you will need to post your actual program.&amp;nbsp; It's not just the reference to a nonexistent array, it's also that&amp;nbsp; you have a second DATA statement instead of a SET statement.&amp;nbsp; While you've posted all the code that seems relevant from your perspective, "fresh eyes" will need to see the whole program to diagnose this.&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:13:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252562#M56837</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2016-02-25T22:13:01Z</dc:date>
    </item>
    <item>
      <title>Re: Error: Array subscript out of range</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252565#M56838</link>
      <description>&lt;P&gt;Sorry all - it was as&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/13879"&gt;@Reeza﻿&lt;/a&gt;&amp;nbsp;pointed out and my arrays didn't match. Thank you though!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Feb 2016 22:18:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Error-Array-subscript-out-of-range/m-p/252565#M56838</guid>
      <dc:creator>chelsealutz</dc:creator>
      <dc:date>2016-02-25T22:18:28Z</dc:date>
    </item>
  </channel>
</rss>

