<?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 What does the number after ARRAY statement mean in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693511#M211476</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a silly question, the code is like: array cnt_ir_a{5} &lt;STRONG&gt;8&lt;/STRONG&gt; cnt_ir_1-cnt_ir_5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering what does the number "8" mean here, is that the length?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
    <pubDate>Thu, 22 Oct 2020 14:11:47 GMT</pubDate>
    <dc:creator>ForrestYao</dc:creator>
    <dc:date>2020-10-22T14:11:47Z</dc:date>
    <item>
      <title>What does the number after ARRAY statement mean</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693511#M211476</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Just a silly question, the code is like: array cnt_ir_a{5} &lt;STRONG&gt;8&lt;/STRONG&gt; cnt_ir_1-cnt_ir_5;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am just wondering what does the number "8" mean here, is that the length?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693511#M211476</guid>
      <dc:creator>ForrestYao</dc:creator>
      <dc:date>2020-10-22T14:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: What does the number after ARRAY statement mean</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693518#M211478</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264359"&gt;@ForrestYao&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Just a silly question, the code is like: array cnt_ir_a{5} &lt;STRONG&gt;8&lt;/STRONG&gt; cnt_ir_1-cnt_ir_5;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am just wondering what does the number "8" mean here, is that the length?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Yes the 8 is the length, not needed as would be the default for numeric variables.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:24:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693518#M211478</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-10-22T14:24:42Z</dc:date>
    </item>
    <item>
      <title>Re: What does the number after ARRAY statement mean</title>
      <link>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693521#M211480</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/264359"&gt;@ForrestYao&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In addition to the length (in bytes) of each of the five variables it also indicates their type: numeric (for character variables it would be &lt;STRONG&gt;$&lt;/STRONG&gt;8 or &lt;STRONG&gt;$&lt;/STRONG&gt;1&amp;nbsp;or ...) -- like in a LENGTH statement.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;In certain situations the "default length 8" would not apply and the "8" would be required to ensure length 8. Example:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
array a[3] 4 cnt_ir_1-cnt_ir_3;
run;

data want;
array cnt_ir_a{5} cnt_ir_1-cnt_ir_5;
set have;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Without the length specification in the second ARRAY statement the first three variables inherit their length 4 from dataset HAVE.&lt;/P&gt;</description>
      <pubDate>Thu, 22 Oct 2020 14:34:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/What-does-the-number-after-ARRAY-statement-mean/m-p/693521#M211480</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2020-10-22T14:34:49Z</dc:date>
    </item>
  </channel>
</rss>

