<?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 How to create n number of arrays. in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139366#M28122</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string, Let it be 'GOOD'. Now I want to create a array with the length of the string i.e 4(here length of the string GOOD is 4). And I want to take each character of GOOD into each array element and I want to concatenate all the four array elements. Finally the result would be GOOD only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2014 10:32:05 GMT</pubDate>
    <dc:creator>K_HARI_PRASAD</dc:creator>
    <dc:date>2014-06-12T10:32:05Z</dc:date>
    <item>
      <title>How to create n number of arrays.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139366#M28122</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a string, Let it be 'GOOD'. Now I want to create a array with the length of the string i.e 4(here length of the string GOOD is 4). And I want to take each character of GOOD into each array element and I want to concatenate all the four array elements. Finally the result would be GOOD only.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 10:32:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139366#M28122</guid>
      <dc:creator>K_HARI_PRASAD</dc:creator>
      <dc:date>2014-06-12T10:32:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to create n number of arrays.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139367#M28123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here the length may vary each time that is instead of GOOD i may pass THIS IS SAS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 10:33:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139367#M28123</guid>
      <dc:creator>K_HARI_PRASAD</dc:creator>
      <dc:date>2014-06-12T10:33:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to create n number of arrays.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139368#M28124</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In SAS arrays have fixed length defined when the code is compiled.&amp;nbsp; The associative array (hash) is a dynamic sized object so you may consider that option.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However I don't see the point of your question.&amp;nbsp; State the problem again in more detail.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While you do that you may consider this bit&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; test;&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;input&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; string &lt;/SPAN&gt;&lt;SPAN style="color: #008080; background-color: #ffffff;"&gt;$char20.&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; c[&lt;/SPAN&gt;&lt;STRONG style="color: #008080; background-color: #ffffff;"&gt;20&lt;/STRONG&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt;] $&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;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; background-color: #ffffff;"&gt;call&lt;/SPAN&gt;&lt;SPAN style="color: #000000; background-color: #ffffff;"&gt; pokelong(string,addrlong(c[&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;]),length(string));&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: #008000; background-color: #ffffff;"&gt;*CALL POKELONG(source,pointer&amp;lt;,length&amp;gt;&amp;lt;,floating-point&amp;gt; );&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;cards&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: #ffffc0;"&gt;GOOD&lt;BR /&gt;i may pass &lt;BR /&gt;THIS IS SAS&lt;BR /&gt;&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;/SPAN&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 11:25:23 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139368#M28124</guid>
      <dc:creator>data_null__</dc:creator>
      <dc:date>2014-06-12T11:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: How to create n number of arrays.</title>
      <link>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139369#M28125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Provide some input/output examples.&lt;/P&gt;&lt;P&gt;Pulling individual characters and then concatenating them back to a string really sounds like you may be needing one of Strip, Compress or some other string function instead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2014 14:51:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/How-to-create-n-number-of-arrays/m-p/139369#M28125</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2014-06-12T14:51:41Z</dc:date>
    </item>
  </channel>
</rss>

