<?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: Array in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618474#M181451</link>
    <description>&lt;P&gt;As I see there were 2 problems in the array that I defined:&lt;/P&gt;
&lt;P&gt;1- I didn't use $ sign to tell that the variables are chars&lt;/P&gt;
&lt;P&gt;2- I didn't use 100 in length&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Jan 2020 08:30:31 GMT</pubDate>
    <dc:creator>Ronein</dc:creator>
    <dc:date>2020-01-20T08:30:31Z</dc:date>
    <item>
      <title>Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618468#M181449</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;
&lt;P&gt;I want to concatenate multiple times and I am using array.&lt;/P&gt;
&lt;P&gt;In the result data set the new variables have null value. What is the problem with the code?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;
Data RawTbl;
INFILE DATALINES DLM=',';
input ID Customer1901 $ Branch1901 $ Customer1902 $ Branch1902 $ Customer1903 $ Branch1903 $ Customer1904 $ Branch1904 $;
cards;
3188,22339829,855,22339829,855,22339829,855,22339829,855
3195,40031612,832,40031612,832,40031612,832,40031612,832
;
run;

Data wanted;
set  RawTbl;
Array Customer(4) Customer1901 Customer1902 Customer1903 Customer1904;
Array Branch(4) Branch1901 Branch1902 Branch1903 Branch1904;
Array CustBranch(4) CustBranch1901 CustBranch1902 CustBranch1903 CustBranch1904;
Do i=1 to 4;
CustBranch(i)=CATX('-',Customer(i),Branch(i));
end;
Run;
&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:08:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618468#M181449</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-20T08:08:00Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618471#M181450</link>
      <description>&lt;P&gt;Create your arrays with the proper type and length&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data wanted;
    set RawTbl;

    Array Customer(4) $ Customer1901 Customer1902 Customer1903 Customer1904;
    Array Branch(4) $ Branch1901 Branch1902 Branch1903 Branch1904;
    Array CustBranch(4) $ 100 CustBranch1901 CustBranch1902 CustBranch1903 CustBranch1904;

    Do i=1 to 4;
        CustBranch(i)=CATX('-',Customer(i),Branch(i));
    end;
Run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:14:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618471#M181450</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-01-20T08:14:25Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618474#M181451</link>
      <description>&lt;P&gt;As I see there were 2 problems in the array that I defined:&lt;/P&gt;
&lt;P&gt;1- I didn't use $ sign to tell that the variables are chars&lt;/P&gt;
&lt;P&gt;2- I didn't use 100 in length&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:30:31 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618474#M181451</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2020-01-20T08:30:31Z</dc:date>
    </item>
    <item>
      <title>Re: Array</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618475#M181452</link>
      <description>&lt;P&gt;You are correct.&lt;/P&gt;</description>
      <pubDate>Mon, 20 Jan 2020 08:31:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Array/m-p/618475#M181452</guid>
      <dc:creator>PeterClemmensen</dc:creator>
      <dc:date>2020-01-20T08:31:30Z</dc:date>
    </item>
  </channel>
</rss>

