<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701114#M214665</link>
    <description>how could i even miss this. Anyways thank you</description>
    <pubDate>Tue, 24 Nov 2020 00:00:16 GMT</pubDate>
    <dc:creator>Raj00007</dc:creator>
    <dc:date>2020-11-24T00:00:16Z</dc:date>
    <item>
      <title>array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701111#M214663</link>
      <description>&lt;P&gt;hi, i have a data&amp;nbsp; in Celsius, it need to convert into Fahrenheit, please help me in executing this code&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;whats wrong with this code?


data want;
set have;
array celsius(9)TmpNeg10 TempNeg5 Temp0 Temp5 Temp10 Temp15 Temp20 Temp25 Temp30;
array fahrenheit(9);
do i = 1 to 9;
fahrenheit(i) = ((9/5)*(i) + 32);
end;
run;
proc  print;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Obs TmpNeg10 TempNeg5 Temp0 Temp5 Temp10 Temp15 Temp20 Temp25 Temp30 
1 -20 -14 -10 -2 3 8 12 17 26 
2 -26 -20 -15 -7 -2 4 8 13 22 
3 -30 -24 -18 -10 -5 1 5 11 20 
4 -33 -27 -21 -12 -7 -1 3 9 18 
5 -35 -29 -23 -14 -9 -3 2 7 17 
6 -37 -31 -25 -16 -10 -4 0 6 16 
7 -39 -32 -26 -18 -12 -6 -1 5 15 
8 -40 -34 -28 -19 -13 -7 -2 4 14 &lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Nov 2020 23:40:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/701111#M214663</guid>
      <dc:creator>Raj00007</dc:creator>
      <dc:date>2020-11-23T23:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701113#M214664</link>
      <description>&lt;P&gt;Kind of forgot the Celsius component:&lt;/P&gt;
&lt;PRE&gt;data want;
set have;
array celsius(9)TmpNeg10 TempNeg5 Temp0 Temp5 Temp10 Temp15 Temp20 Temp25 Temp30;
array fahrenheit(9);
do i = 1 to 9;
fahrenheit(i) = ((9/5)*&lt;FONT size="5"&gt;&lt;STRONG&gt;Celsius&lt;/STRONG&gt;&lt;/FONT&gt;(i) + 32);
end;
run;
proc  print;
run;&lt;/PRE&gt;</description>
      <pubDate>Mon, 23 Nov 2020 23:52:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/701113#M214664</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-23T23:52:09Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701114#M214665</link>
      <description>how could i even miss this. Anyways thank you</description>
      <pubDate>Tue, 24 Nov 2020 00:00:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/701114#M214665</guid>
      <dc:creator>Raj00007</dc:creator>
      <dc:date>2020-11-24T00:00:16Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701127#M214673</link>
      <description>&lt;P&gt;&lt;EM&gt;&amp;gt;&amp;nbsp;whats wrong with this code?&lt;/EM&gt;&lt;/P&gt;
&lt;P&gt;The formatting of the code is non-existent. Help yourself and format your code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There is also a typo in the question. Since forums are about communication, you might as well try to communicate as well as possible. It's hard enough understanding the question at times, without having to compound this difficulty with poor or lazy writing.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 02:29:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/701127#M214673</guid>
      <dc:creator>ChrisNZ</dc:creator>
      <dc:date>2020-11-24T02:29:35Z</dc:date>
    </item>
    <item>
      <title>Re: array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/array/m-p/701258#M214720</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/97663"&gt;@Raj00007&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;how could i even miss this. Anyways thank you&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Arrays will allow use of other brackets than () for the index.&lt;/P&gt;
&lt;P&gt;For ancient reasons I use [ ] for array indexes such as Celsius[i] . That way when I am using an index value I remind myself to use the array name as well.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I have found this somewhat helpful in long equations with multiple nested parentheses to help keep the levels straight as well.&lt;/P&gt;</description>
      <pubDate>Tue, 24 Nov 2020 15:29:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/array/m-p/701258#M214720</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2020-11-24T15:29:34Z</dc:date>
    </item>
  </channel>
</rss>

