<?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 Using ARRAY and Scan function together in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276572#M55422</link>
    <description>&lt;P&gt;Hello, Is it possible to use the Array and scan together. With the current project I'm working on, I'm currently using the scan function to pull individual variable from a column. For example, here an example of a code I wrote out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;set temp;&lt;/P&gt;
&lt;P&gt;CODE1=scan(CODE,1, ' ');&lt;/P&gt;
&lt;P&gt;CODE2=scan(CODE,2,' ');&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.CODE27=scan(CODE,27,' ');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to used an 'array' function to simplied this code. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Fri, 10 Jun 2016 17:42:30 GMT</pubDate>
    <dc:creator>PatriciaEilerman</dc:creator>
    <dc:date>2016-06-10T17:42:30Z</dc:date>
    <item>
      <title>Using ARRAY and Scan function together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276572#M55422</link>
      <description>&lt;P&gt;Hello, Is it possible to use the Array and scan together. With the current project I'm working on, I'm currently using the scan function to pull individual variable from a column. For example, here an example of a code I wrote out:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data test;&lt;/P&gt;
&lt;P&gt;set temp;&lt;/P&gt;
&lt;P&gt;CODE1=scan(CODE,1, ' ');&lt;/P&gt;
&lt;P&gt;CODE2=scan(CODE,2,' ');&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.&lt;/P&gt;
&lt;P&gt;.CODE27=scan(CODE,27,' ');&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Is it possible to used an 'array' function to simplied this code. Thanks.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 17:42:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276572#M55422</guid>
      <dc:creator>PatriciaEilerman</dc:creator>
      <dc:date>2016-06-10T17:42:30Z</dc:date>
    </item>
    <item>
      <title>Re: Using ARRAY and Scan function together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276579#M55424</link>
      <description>&lt;P&gt;Of course, it is possible&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data test;
set temp;
array c code1-code27;
do i = 1 to dim(c);
	c{i} = scan(CODE, i, ' ');
	end;
drop i CODE;
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:11:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276579#M55424</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2016-06-10T18:11:47Z</dc:date>
    </item>
    <item>
      <title>Re: Using ARRAY and Scan function together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276582#M55426</link>
      <description>&lt;P&gt;The code appears to work, but the variable (CODE) is a character variable and I'm getting the error message mentioning numeric data.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:25:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276582#M55426</guid>
      <dc:creator>PatriciaEilerman</dc:creator>
      <dc:date>2016-06-10T18:25:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using ARRAY and Scan function together</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276589#M55427</link>
      <description>&lt;P&gt;Nevermind. I got it to work now. thanks to everyone help.&lt;/P&gt;</description>
      <pubDate>Fri, 10 Jun 2016 18:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Using-ARRAY-and-Scan-function-together/m-p/276589#M55427</guid>
      <dc:creator>PatriciaEilerman</dc:creator>
      <dc:date>2016-06-10T18:48:21Z</dc:date>
    </item>
  </channel>
</rss>

