<?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 Multidimensional Array with different columns length in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160690#M31276</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that I have to create a multidimensional array of the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;silo1 - storage 1, storage 2, storage 3 &lt;/P&gt;&lt;P&gt;silo2 - storage 4, storage 5, storage 6, storage 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create an array arrsilo [2,4] storage1- storage7 will get an error since it expects 8 variables. Is there a way I can create the array that will allow me to have the array have only 3 columns for row 1 then 4 columns for row 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ways would greatly be appreciated. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 07 Nov 2014 06:11:49 GMT</pubDate>
    <dc:creator>milts</dc:creator>
    <dc:date>2014-11-07T06:11:49Z</dc:date>
    <item>
      <title>Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160690#M31276</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Given that I have to create a multidimensional array of the below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;silo1 - storage 1, storage 2, storage 3 &lt;/P&gt;&lt;P&gt;silo2 - storage 4, storage 5, storage 6, storage 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I create an array arrsilo [2,4] storage1- storage7 will get an error since it expects 8 variables. Is there a way I can create the array that will allow me to have the array have only 3 columns for row 1 then 4 columns for row 2?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other ways would greatly be appreciated. Thank you!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 06:11:49 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160690#M31276</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2014-11-07T06:11:49Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160691#M31277</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No. 2 dimensional arrays are n1 x n2 tables.&lt;/P&gt;&lt;P&gt;But this is valid:&lt;/P&gt;&lt;P&gt;array arrsilo [2,4] storage1- storage3 dummy storage4 - storage7;&lt;/P&gt;&lt;P&gt;drop dummy;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or you can use associative arrays: hash object.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 07:47:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160691#M31277</guid>
      <dc:creator>gergely_batho</dc:creator>
      <dc:date>2014-11-07T07:47:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160692#M31278</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No way for SAS, But JAVA can do that .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 13:39:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160692#M31278</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-11-07T13:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160693#M31279</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not sure what your problem is or what you are trying to achieve as you already have the array:&lt;/P&gt;&lt;P&gt;I assume you have a table like:&lt;/P&gt;&lt;P&gt;STORAGE1 STORAGE2...STORAGE7.&amp;nbsp; Now that in itself is an array{7} of variables named storage.&amp;nbsp; If you then want these in two rows your end product will look like:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR4&lt;/P&gt;&lt;P&gt;silo1 - storage 1, storage 2, storage 3 &lt;/P&gt;&lt;P&gt;silo2 - storage 4, storage 5, storage 6, storage 7&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All an array is in terms of SAS is a convinient reference to variables in your dataset, so in the above VAR{x} is the array and refers to VAR1, VAR2 etc.&amp;nbsp; You could have an array refence to COL1, ABC1, EDC1 etc,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Nov 2014 14:55:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160693#M31279</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-07T14:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160694#M31280</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is my current workaround although I was thinking of a more appropriate way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do you implement such has object? Greatly appreciate if you can give an example.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 02:37:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160694#M31280</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2014-11-10T02:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160695#M31281</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;So true. Makes me miss Java because of this requirement.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 02:37:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160695#M31281</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2014-11-10T02:37:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160696#M31282</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If I'll be using a normal array I won't be able to identify how many storages I have for each silo based on my example fields. Because I would be creating a different logic/treatment depending on the number of silos.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 02:39:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160696#M31282</guid>
      <dc:creator>milts</dc:creator>
      <dc:date>2014-11-10T02:39:56Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160697#M31283</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps restate your actual issue then and a more appropriate SAS solution can be offered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because SAS processes data line by line rather than loading the entire dataset into memory means it operates differently, sometimes that's good and sometimes that's bad.&amp;nbsp; But it does mean the best way to handle a certain scenario may differ from a memory based language.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 02:48:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160697#M31283</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2014-11-10T02:48:27Z</dc:date>
    </item>
    <item>
      <title>Re: Multidimensional Array with different columns length</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160698#M31284</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Simple:&lt;/P&gt;&lt;P&gt;ID&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR1&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR2&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; VAR4&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; No_Storage&lt;/P&gt;&lt;P&gt;silo1&amp;nbsp;&amp;nbsp; storage 1,&amp;nbsp; storage 2, storage 3&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 3&lt;/P&gt;&lt;P&gt;silo2&amp;nbsp;&amp;nbsp; storage 4,&amp;nbsp; storage 5, storage 6, storage 7&amp;nbsp;&amp;nbsp;&amp;nbsp; 4&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I agree with Reeza, clarify what you are trying to do.&amp;nbsp; Different technologies approach problems in differing ways.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Nov 2014 09:10:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Multidimensional-Array-with-different-columns-length/m-p/160698#M31284</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-11-10T09:10:45Z</dc:date>
    </item>
  </channel>
</rss>

