<?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/900996#M356086</link>
    <description>This is what I tried. But I'm stuck on adding the value to original price after doing the percent. &lt;BR /&gt;&lt;BR /&gt;data work.ACT01;&lt;BR /&gt;set sashelp.pricedata;&lt;BR /&gt;array Prices(12)price1--price12;&lt;BR /&gt;do i=1 to 12;&lt;BR /&gt;prices(i)=prices(i) * (10/100);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;</description>
    <pubDate>Wed, 01 Nov 2023 03:44:51 GMT</pubDate>
    <dc:creator>POOJA_J</dc:creator>
    <dc:date>2023-11-01T03:44:51Z</dc:date>
    <item>
      <title>Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900894#M356033</link>
      <description>&lt;P&gt;Write a SAS program that will:&lt;BR /&gt;• Create output data set work.ACT01 using sashelp.pricedata as input.&lt;BR /&gt;• Use an array to increase the values of the price1 through price17 variables by 10%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to solve this?&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 12:16:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900894#M356033</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-10-31T12:16:26Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900895#M356034</link>
      <description>&lt;P&gt;We don't usually do your homework for you. However, if you give it a try and can't seem to get it to work, show us your code and we will be happy to help.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 12:18:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900895#M356034</guid>
      <dc:creator>PaigeMiller</dc:creator>
      <dc:date>2023-10-31T12:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900920#M356047</link>
      <description>&lt;P&gt;Here's a start. Fill it what you have attempted for the array and calculations.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;data work.ACT01;
   set sashelp.pricedata;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Oct 2023 14:51:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900920#M356047</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2023-10-31T14:51:03Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900922#M356048</link>
      <description>&lt;BLOCKQUOTE&gt;&lt;HR /&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/437294"&gt;@POOJA_J&lt;/a&gt;&amp;nbsp;wrote:&lt;BR /&gt;
&lt;P&gt;Write a SAS program that will:&lt;BR /&gt;• Create output data set work.ACT01 using sashelp.pricedata as input.&lt;BR /&gt;• Use an array to increase the values of the price1 through price17 variables by 10%.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How to solve this?&lt;/P&gt;
&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;
&lt;P&gt;Here's a tutorial on using Arrays in SAS&lt;BR /&gt;&lt;A href="https://stats.idre.ucla.edu/sas/seminars/sas-arrays/" target="_blank"&gt;https://stats.idre.ucla.edu/sas/seminars/sas-arrays/&lt;/A&gt;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;See the example under "Computing new variables", though make sure you double check your answer.&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 14:54:29 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900922#M356048</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2023-10-31T14:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900933#M356054</link>
      <description>&lt;P&gt;More important sources of knowledge (Maxim 1!):&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/p08do6szetrxe2n136ush727sbuo.htm" target="_blank" rel="noopener"&gt;ARRAY Statement&lt;/A&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;A href="https://documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lestmtsref/n00gp8yc3x6rcgn1la2w81ru9lb6.htm" target="_blank" rel="noopener"&gt;Array Reference&lt;/A&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Oct 2023 16:21:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900933#M356054</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-10-31T16:21:52Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900996#M356086</link>
      <description>This is what I tried. But I'm stuck on adding the value to original price after doing the percent. &lt;BR /&gt;&lt;BR /&gt;data work.ACT01;&lt;BR /&gt;set sashelp.pricedata;&lt;BR /&gt;array Prices(12)price1--price12;&lt;BR /&gt;do i=1 to 12;&lt;BR /&gt;prices(i)=prices(i) * (10/100);&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;BR /&gt;</description>
      <pubDate>Wed, 01 Nov 2023 03:44:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/900996#M356086</guid>
      <dc:creator>POOJA_J</dc:creator>
      <dc:date>2023-11-01T03:44:51Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/901008#M356089</link>
      <description>&lt;P&gt;One percent is 0.01 of the original value. 10 percent are 0.1 of the original value. To add 10 percent, you have to multiply the original value by 0.1,&amp;nbsp;&lt;EM&gt;and add that to the original value&lt;/EM&gt;.&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = x + x * 0.1;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;or, simplified&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;x = x * 1.1;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 01 Nov 2023 06:14:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/901008#M356089</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2023-11-01T06:14:19Z</dc:date>
    </item>
  </channel>
</rss>

