<?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 Asterisk in Arrays in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476177#M122501</link>
    <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am familiar with the asterisk being used in arrays when the number of arrays is not known. This is shown in the top part of the code below. However, it appears the asterisk can also be used with assignment statements, as below, in the Qtr1 assignment statement. Can someone describe how SAS uses the asteriski in the Qtr1 = Sum(of Month{*}) statement, and how sas knows how to distinguish this from the use as determining the correct number of arrays? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data TestPrep.SalesArray4 ; 
	Set TestPrep.Sales ;
	Array Month{*} JanSales FebSales  MarchAmt ; 
	Qtr1 = Sum(of Month{*}) ; 
run ; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Sat, 07 Jul 2018 01:46:02 GMT</pubDate>
    <dc:creator>ManitobaMoose</dc:creator>
    <dc:date>2018-07-07T01:46:02Z</dc:date>
    <item>
      <title>Asterisk in Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476177#M122501</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am familiar with the asterisk being used in arrays when the number of arrays is not known. This is shown in the top part of the code below. However, it appears the asterisk can also be used with assignment statements, as below, in the Qtr1 assignment statement. Can someone describe how SAS uses the asteriski in the Qtr1 = Sum(of Month{*}) statement, and how sas knows how to distinguish this from the use as determining the correct number of arrays? Thanks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;Data TestPrep.SalesArray4 ; 
	Set TestPrep.Sales ;
	Array Month{*} JanSales FebSales  MarchAmt ; 
	Qtr1 = Sum(of Month{*}) ; 
run ; &lt;/PRE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 01:46:02 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476177#M122501</guid>
      <dc:creator>ManitobaMoose</dc:creator>
      <dc:date>2018-07-07T01:46:02Z</dc:date>
    </item>
    <item>
      <title>Re: Asterisk in Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476179#M122503</link>
      <description>&lt;P&gt;The OF keyword allows you to use a variable list in a function call.&amp;nbsp; ARRAY_NAME(*) is an example of a variable list.&lt;/P&gt;
&lt;P&gt;Other examples are things like&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var1-var20
first -- last
prefix:
_all_
_numeric_
_character_
first-character-last
first-numeric-last&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 03:39:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476179#M122503</guid>
      <dc:creator>Tom</dc:creator>
      <dc:date>2018-07-07T03:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Asterisk in Arrays</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476181#M122504</link>
      <description>&lt;P&gt;This post may be helpful:&lt;/P&gt;
&lt;P&gt;&lt;A href="https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html" target="_blank"&gt;https://blogs.sas.com/content/iml/2018/05/29/6-easy-ways-to-specify-a-list-of-variables-in-sas.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Sat, 07 Jul 2018 02:22:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Asterisk-in-Arrays/m-p/476181#M122504</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2018-07-07T02:22:11Z</dc:date>
    </item>
  </channel>
</rss>

