<?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 problem in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596347#M171690</link>
    <description>&lt;P&gt;This will do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b;
   array math{3} $ Jan Feb Mar ('January' 'February' 'March');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Mon, 14 Oct 2019 18:57:04 GMT</pubDate>
    <dc:creator>PeterClemmensen</dc:creator>
    <dc:date>2019-10-14T18:57:04Z</dc:date>
    <item>
      <title>array problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596345#M171688</link>
      <description>&lt;P&gt;Hi community,&lt;/P&gt;&lt;P&gt;I'm not sure if my output is correct for this array problem. Any suggestions are greatly appreciated. Thank you!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1. Set up arrays to meet the following requirements:&lt;/P&gt;&lt;P&gt;&amp;nbsp;Array math has three elements, Jan, Feb and Mar.&amp;nbsp; Their initial values are “January”, “February” and “March”.&lt;BR /&gt;Since the array statement will be the first reference to these variables, pay particular attention to their length.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Below is my answer:&lt;/P&gt;&lt;PRE&gt;data b;
array math (3) Jan Feb Mar;
do i=1 to 3;
end;
proc print;
run;


Obs	Jan	Feb	Mar	i
1	.	.	.	4&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:38:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596345#M171688</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-10-14T18:38:54Z</dc:date>
    </item>
    <item>
      <title>Re: array problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596346#M171689</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/265801"&gt;@Amy0223&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Hi community,&lt;/P&gt;
&lt;P&gt;I'm not sure if my output is correct for this array problem. Any suggestions are greatly appreciated. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;1. Set up arrays to meet the following requirements:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;Array math has three elements, Jan, Feb and Mar.&amp;nbsp; Their initial values are “January”, “February” and “March”.&lt;BR /&gt;Since the array statement will be the first reference to these variables, pay particular attention to their length.;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Below is my answer:&lt;/P&gt;
&lt;PRE&gt;data b;
array math (3) Jan Feb Mar;
do i=1 to 3;
end;
proc print;
run;


Obs	Jan	Feb	Mar	i
1	.	.	.	4&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;I think this is not a situation where arrays are needed! But ... it seems as if the answer is expected to contain usage of arrays. And thus a very poor question.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Nevertheless&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;array math {3} $ 8 jan feb mar ('January','February','March');&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:56:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596346#M171689</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2019-10-14T18:56:53Z</dc:date>
    </item>
    <item>
      <title>Re: array problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596347#M171690</link>
      <description>&lt;P&gt;This will do&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data b;
   array math{3} $ Jan Feb Mar ('January' 'February' 'March');
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 14 Oct 2019 18:57:04 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596347#M171690</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2019-10-14T18:57:04Z</dc:date>
    </item>
    <item>
      <title>Re: array problem</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596351#M171693</link>
      <description>Thank you very much for your kind help! I greatly appreciate it!</description>
      <pubDate>Mon, 14 Oct 2019 19:05:32 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array-problem/m-p/596351#M171693</guid>
      <dc:creator>Amy0223</dc:creator>
      <dc:date>2019-10-14T19:05:32Z</dc:date>
    </item>
  </channel>
</rss>

