<?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: It is possible to use nested arrays? in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143156#M28636</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot have an arrray of arrays, only an array of vars.&lt;/P&gt;&lt;P&gt;But you can have multidimensional arrays.&lt;/P&gt;&lt;P&gt;Although I can see no sense in your overly complicated code. Just write a data step that generates your regions in geogr2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 27 Oct 2014 13:07:10 GMT</pubDate>
    <dc:creator>Kurt_Bremser</dc:creator>
    <dc:date>2014-10-27T13:07:10Z</dc:date>
    <item>
      <title>It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143154#M28634</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dears,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to use multiple arrays: reg1 to reg5 (5 régions according to dialing codes). And I want to use 1 main array named "regs" which would be an array of the arrays "reg1", ..., "reg5". Is it possible to created such "nested arrays"? I got some issues when running the following SAS code :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks so much in advance for your input,&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Violaine&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;*- creation of the input dataset (1 record per region according to dialing code) -* ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data indictel ; &lt;/P&gt;&lt;P&gt;&amp;nbsp; format geogr3 $50. geogr3n z2. ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; geogr3n=01 ; geogr3='Ile-de-France' ; output ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; geogr3n=02 ; geogr3='North-West'&amp;nbsp;&amp;nbsp;&amp;nbsp; ; output ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; geogr3n=03 ; geogr3='North-East'&amp;nbsp;&amp;nbsp;&amp;nbsp; ; output ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; geogr3n=04 ; geogr3='South-East'&amp;nbsp;&amp;nbsp;&amp;nbsp; ; output ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; geogr3n=05 ; geogr3='South-West'&amp;nbsp;&amp;nbsp;&amp;nbsp; ; output ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #008000;"&gt;*- creation of the input data (1 record per geographical region)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;data indictel ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; set indictel ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array regs(*) _char_ reg: ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array reg1{1} $50. _temporary_ ('ILE-DE-FRANCE') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array reg2{5} $50. _temporary_ ('BASSE-NORMANDIE' 'BRETAGNE' 'CENTRE' 'HAUTE-NORMANDIE' 'PAYS-DE-LA-LOIRE') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array reg3{7} $50. _temporary_ ('ALSACE' 'BOURGOGNE' 'CHAMPAGNE-ARDENNE' 'FRANCHE-COMTE' 'LORRAINE' 'NORD-PAS-DE-CALAIS' 'PICARDIE') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array reg4{4} $50. _temporary_ ('AUVERGNE' 'LANGUEDOC-ROUSSILLON' 'PROVENCE-ALPES-COTE' 'RHONE-ALPES') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; array reg5{4} $50. _temporary_ ('AQUITAINE' 'LIMOUSIN' 'MIDI-PYRENEES' 'POITOU-CHARENTES') ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; do z = 1 to 5 ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;do k = 1 to dim(regs(z)) ;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; if geogr3n=&amp;amp;z then do ; &lt;SPAN style="color: #0000ff;"&gt;geogr2 = &lt;STRONG&gt;regs(z)(k);&lt;/STRONG&gt;&lt;/SPAN&gt; output ; end ;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; end ;&lt;/P&gt;&lt;P&gt;&amp;nbsp; drop k ;&lt;/P&gt;&lt;P&gt;run ;&lt;/P&gt;&lt;P class="action-menu ab_ctl"&gt;&lt;A class="_Fmb ab_button" data-ved="0CCkQ7B0wAQ" href="https://www.google.fr/" id="am-b1"&gt;https://www.google.fr/&lt;/A&gt;&lt;/P&gt;&lt;P class="action-menu ab_ctl"&gt;&lt;A class="_Fmb ab_button" data-ved="0CCkQ7B0wAQ" href="https://www.google.fr/" id="am-b1"&gt;https://www.google.fr/&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 12:52:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143154#M28634</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2014-10-27T12:52:27Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143155#M28635</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No.&lt;/P&gt;&lt;P&gt;You can use multidimensional arrays or hash objects (associative array) instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 12:59:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143155#M28635</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2014-10-27T12:59:14Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143156#M28636</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You cannot have an arrray of arrays, only an array of vars.&lt;/P&gt;&lt;P&gt;But you can have multidimensional arrays.&lt;/P&gt;&lt;P&gt;Although I can see no sense in your overly complicated code. Just write a data step that generates your regions in geogr2;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:07:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143156#M28636</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-27T13:07:10Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143157#M28637</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;"Back in the day" we used arrays of arrays all the time.&amp;nbsp; I don't think there is anything useful for arrays of arrays today, but it still works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;_null_&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a(i) a1-a3 (&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; b(i) b1-b3 (&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;11&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;:&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;13&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x(j) a b;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;over&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;over&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; i= j= x=;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a1=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; b1=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;11&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a2=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; b2=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;12&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; a3=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;i=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;3&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; j=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;2&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; b3=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;13&lt;/STRONG&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:39:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143157#M28637</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-27T13:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143158#M28638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Can you explain your problem using the HAVE/NEED scenario?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the data I have.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the data I need.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:41:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143158#M28638</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-27T13:41:30Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143159#M28639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Well, this is probably another hidden 'features' that will never go to production.&lt;/P&gt;&lt;P&gt;Can you define Array of Array? Yes. Just like you can define Hash of Hash.&lt;/P&gt;&lt;P&gt;Can you put AOA into any practical application? Well, given the limitation it inherited, I doubt that. The limitation I learned is that it only supports implicit Arrays, which results in the only index usable is the implicit index "_i_", which leads to very limited applications, one being that all of the arrays involved has to be the same dimension.&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;input&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; (v1-v4) (:&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: teal; background: white;"&gt;$8.&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;cards&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: #FFFFC0;"&gt;a b c d&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;data&lt;/STRONG&gt;&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;_null_&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; test;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; a1 v1 v2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; a2 v3-v5;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; aoa a1 a2;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;do&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;over&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; aoa;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;put&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt; a1= a2=;&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; color: blue; background: white;"&gt;end&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: navy; background: white; font-family: 'Courier New';"&gt;&lt;STRONG&gt;run&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; color: black; background: white;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Haikuo&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:45:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143159#M28639</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-10-27T13:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143160#M28640</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You just need to define index variable in ARRAY statement see my example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When implicitly sub-scripted arrays were documented arrays of arrays was an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:49:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143160#M28640</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-27T13:49:22Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143161#M28641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is nice! First time to see this application. Pity my time wasted trying to figure it out. Thanks, John.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 13:52:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143161#M28641</guid>
      <dc:creator>Haikuo</dc:creator>
      <dc:date>2014-10-27T13:52:24Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143162#M28642</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yeah, but x(1) will not give you the array a, but a1. So the whole thing lends itself to the misconception of the OP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:25:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143162#M28642</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-27T15:25:57Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143163#M28643</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;It was not my intention to suggest my example has ANYTHING to do the the OP's problem.&amp;nbsp; I am still waiting for a proper statement of the OPs problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You cannot reference an implicitly sub-scripted array as you suggest "x(1)" so I don't know what your statement is indented to show.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143163#M28643</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-27T15:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143164#M28644</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The OP tried to use&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff;"&gt;&lt;STRONG&gt;dim(regs(z))&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #000000;"&gt;which does not work because regs(z) is not an array, but a single variable&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 15:44:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143164#M28644</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-27T15:44:30Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143165#M28645</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot to all for your replies. I'll try to explain a bit more clearly:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At the end, I would like to have a dataset containing 1 record per region as follows:&lt;/P&gt;&lt;P&gt;&lt;IMG alt="sasregion.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/7739_sasregion.png" width="450" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I wanted to start with a simple dataset including 2 variables GEOGR3 and GEOGR3N (and so, only 5 records - or "5 main régions").&lt;/P&gt;&lt;P&gt;Then, in order to get the dataset above (22 records): I wanted to use an array in order to avoid to repeat pièces of codes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My example is probably not the best example. Actually, my code works when I combine arrays and macro code. But I wanted to share with you that example because I have often been faced to such problems including nested arrays. So, I wanted to know what I'm misunderstanding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot,&lt;/P&gt;&lt;P&gt;Best regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 16:58:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143165#M28645</guid>
      <dc:creator>hetuvio</dc:creator>
      <dc:date>2014-10-27T16:58:53Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143166#M28646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This works "sort of" (it does make the data you want) but because you can't get the DIM of the REGn arrays from the DIM function it's not good.&lt;/P&gt;&lt;DIV style="font-family: Courier New; font-size: 11pt;"&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; indictel ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;format&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; geogr3 &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; geogr3n &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;z2.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; geogr3n=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;01&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; geogr3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'Ile-de-France'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; geogr3n=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;02&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; geogr3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'North-West'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; geogr3n=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;03&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; geogr3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'North-East'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; geogr3n=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;04&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; geogr3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'South-East'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; geogr3n=&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;05&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ; geogr3=&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'South-West'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; ; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;data&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; indictel;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;set&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; indictel;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; reg1(i) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_1_1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'ILE-DE-FRANCE'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; reg2(i) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_2_1-r_2_5&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'BASSE-NORMANDIE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'BRETAGNE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'CENTRE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'HAUTE-NORMANDIE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'PAYS-DE-LA-LOIRE'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; reg3(i) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_3_1-r_3_7&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'ALSACE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'BOURGOGNE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'CHAMPAGNE-ARDENNE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'FRANCHE-COMTE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'LORRAINE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'NORD-PAS-DE-CALAIS'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'PICARDIE'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;) ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; reg4(i) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_4_1-r_4_4&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'AUVERGNE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'LANGUEDOC-ROUSSILLON'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'PROVENCE-ALPES-COTE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'RHONE-ALPES'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;) ;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; reg5(i) &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$50.&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_5_1-r_5_4&amp;nbsp;&amp;nbsp; (&lt;/SPAN&gt;&lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'AQUITAINE'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'LIMOUSIN'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'MIDI-PYRENEES'&lt;/SPAN&gt; &lt;SPAN style="color: #800080; background-color: #ffffff;"&gt;'POITOU-CHARENTES'&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;);&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; d(geogr3n) d1-d5 (&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;5&lt;/STRONG&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;7&lt;/STRONG&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;4&lt;/STRONG&gt; &lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;4&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;); &lt;/SPAN&gt;&lt;SPAN style="color: #008000; background-color: #ffffff;"&gt;/*this is the problem, d1=dim(reg1); d2=dim(reg2); ... */&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;array&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; x(geogr3n) reg1-reg5;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;do&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; i = &lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;1&lt;/STRONG&gt; &lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;to&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; d;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; geogr2 = x;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;output&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;end&lt;/SPAN&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;drop&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; r_: d:;&lt;BR /&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;print&lt;/STRONG&gt;; &lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;STRONG style="color: #000080; background-color: #ffffff;"&gt;run&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;;&lt;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 27 Oct 2014 18:29:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143166#M28646</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-10-27T18:29:23Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143167#M28647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Before going through all the hoops, just write a simple data step with datalines as wanted. Much easier to read and decipher in the future.&lt;/P&gt;&lt;P&gt;"When in doubt, use brute force" - Ken Thompson, creator of UNIX&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 06:30:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143167#M28647</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2014-10-28T06:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: It is possible to use nested arrays?</title>
      <link>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143168#M28648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;the concept of the SAS datastep (4- 5Gl) is seeing one record of tabular data-matrix.&amp;nbsp; The tabular data-matrix is the same concept as an array in in a 3Gl language like Pascal/Java. A major education attention point with programming in SAS is becoming aware and use that evolutionary difference.&lt;/P&gt;&lt;P&gt;What happens if you are using array-s with that is you are another dimension of array-s on top of that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sounds complicated?&lt;/P&gt;&lt;P&gt;In that case you have missed the fundamental concepts (PDV) of the datastep. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Having issues with code writing?&lt;/P&gt;&lt;P&gt;This is a dedicated science area with a lot of nasty difficult topics. Ready to go?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;KISS keep it simple is by far the best way.&lt;/P&gt;&lt;P&gt;When needing extra code statements that is less serious issue as the unequal more complexity on avoiding duplications.&lt;BR /&gt;Code it brute force way.. Why is that a problem?&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Oct 2014 07:14:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/It-is-possible-to-use-nested-arrays/m-p/143168#M28648</guid>
      <dc:creator>jakarman</dc:creator>
      <dc:date>2014-10-28T07:14:22Z</dc:date>
    </item>
  </channel>
</rss>

