<?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: Matrix to Column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270063#M53601</link>
    <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for attaching an Excel file. Only because the browser at work is not supported by SAS.&lt;/P&gt;&lt;P&gt;I have received a reply though and it worked perfectly. It's what's I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bernardita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 12 May 2016 13:53:13 GMT</pubDate>
    <dc:creator>Bernardita</dc:creator>
    <dc:date>2016-05-12T13:53:13Z</dc:date>
    <item>
      <title>Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270047#M53589</link>
      <description>Hello, Please can some one help me to sort out my problem. I would like to Convert a Matrix Data into simply one Column. I have attched an excel example to ilustrate better. Thank you a lot. Bernardita</description>
      <pubDate>Thu, 12 May 2016 13:29:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270047#M53589</guid>
      <dc:creator>Bernardita</dc:creator>
      <dc:date>2016-05-12T13:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270052#M53593</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Many ways to transpose data in SAS.&lt;/P&gt;&lt;P&gt;Here is a datastep solution.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;data have;
input HS $ Channel $ Index :$15. Month_Series :$3.  M201601 M201602 M201603 M201604 M201605 M201606 M201607 M201608;
datalines;
B Brokers LRC_Count_R m01 0.989041667 0 0 0 0 0 0 0
B Brokers LRC_Count_R m02 0.978203418 0.989041667 0 0 0 0 0 0
B Brokers LRC_Count_R m03 0.967483939 0.978203418 0.989041667 0 0 0 0 0
B Brokers LRC_Count_R m04 0.956881928 0.967483939 0.978203418 0.989041667 0 0 0 0
B Brokers LRC_Count_R m05 0.946396097 0.956881928 0.967483939 0.978203418 0.989041667 0 0 0
B Brokers LRC_Count_R m06 0.936025173 0.946396097 0.956881928 0.967483939 0.978203418 0.989041667 0 0
B Brokers LRC_Count_R m07 0.925767897 0.936025173 0.946396097 0.956881928 0.967483939 0.978203418 0.989041667 0
B Brokers LRC_Count_R m08 0.915623024 0.925767897 0.936025173 0.946396097 0.956881928 0.967483939 0.978203418 0.989041667
B Brokers LRC_Count_R m09 0.905589321 0.915623024 0.925767897 0.936025173 0.946396097 0.956881928 0.967483939 0.978203418
B Brokers LRC_Count_R m10 0.895665572 0.905589321 0.915623024 0.925767897 0.936025173 0.946396097 0.956881928 0.967483939
;
run;

data want;
set have;

array tr{*} M201601--M201608;

do i=1 to dim(tr);
Series_2=vname(tr{i});
Ind=tr{i};
output;
end;

drop M201601--M201608 i;
run;&lt;/PRE&gt;</description>
      <pubDate>Thu, 12 May 2016 13:41:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270052#M53593</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2016-05-12T13:41:35Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270058#M53599</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I am afraid attaching Excel sheets is not a good idea, I wouldn't download them as they are a security risk. &amp;nbsp;Please post test data, in the form of a datastep (to avoid us having to type it all out), and an example output of what you want.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:46:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270058#M53599</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-12T13:46:45Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270063#M53601</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Apologies for attaching an Excel file. Only because the browser at work is not supported by SAS.&lt;/P&gt;&lt;P&gt;I have received a reply though and it worked perfectly. It's what's I needed.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thank you very much for your help.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bernardita&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 13:53:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270063#M53601</guid>
      <dc:creator>Bernardita</dc:creator>
      <dc:date>2016-05-12T13:53:13Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270064#M53602</link>
      <description>Thank you. It's perfect!</description>
      <pubDate>Thu, 12 May 2016 13:54:01 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270064#M53602</guid>
      <dc:creator>Bernardita</dc:creator>
      <dc:date>2016-05-12T13:54:01Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270073#M53606</link>
      <description>&lt;P&gt;To note on that, it is advisable - to make your life programming easier, to normalise that data. &amp;nbsp;I.e. have one row for each month/year and result:&lt;/P&gt;
&lt;P&gt;TIMEPOINT &amp;nbsp; &amp;nbsp;RESULT&lt;/P&gt;
&lt;P&gt;201601 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.9&lt;/P&gt;
&lt;P&gt;201602 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; 0.6&lt;/P&gt;
&lt;P&gt;...&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;This makes programming much easier - the structure of the dataset doesn't change each time based on the data (as the months and years is data). &amp;nbsp;Also keeps the number of columns down to a reasonble size. &amp;nbsp;You can always transpose this data back up for a report if you need to.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 14:04:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270073#M53606</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2016-05-12T14:04:50Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270081#M53608</link>
      <description>Thank you for your advice. Indeed the real problem is to calculate a compound Index.&lt;BR /&gt;For example: I have a Started value of 3,000 for Jan. I need to extend the Series by Months to Dec, with an assumption of a decrease each month by 1.3%.&lt;BR /&gt;This is another way of seeing it.&lt;BR /&gt;Thank you a lot,&lt;BR /&gt;Bernardita&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Thu, 12 May 2016 14:18:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270081#M53608</guid>
      <dc:creator>Bernardita</dc:creator>
      <dc:date>2016-05-12T14:18:55Z</dc:date>
    </item>
    <item>
      <title>Re: Matrix to Column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270083#M53610</link>
      <description>&lt;P&gt;Thank you for your advice. Yes indeed this is a long way of doing something that I believe it can be a lot simpler. I will try to see it in a simple way.&lt;/P&gt;</description>
      <pubDate>Thu, 12 May 2016 14:23:24 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Matrix-to-Column/m-p/270083#M53610</guid>
      <dc:creator>Bernardita</dc:creator>
      <dc:date>2016-05-12T14:23:24Z</dc:date>
    </item>
  </channel>
</rss>

