<?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 Transposing Numbers in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29451#M6923</link>
    <description>I have a large dataset similar in set up to that below:&lt;BR /&gt;
&lt;BR /&gt;
account	date	value&lt;BR /&gt;
1	month1	10&lt;BR /&gt;
1	month2	25&lt;BR /&gt;
1	month3	19&lt;BR /&gt;
2	month1	8&lt;BR /&gt;
2	month2	0&lt;BR /&gt;
2	month3	18&lt;BR /&gt;
3	month1	23&lt;BR /&gt;
3	month2	9&lt;BR /&gt;
3	month3	27&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to collapse the account to 1 row per account and create a new dataset to look like this:&lt;BR /&gt;
account	month1	month2	month3&lt;BR /&gt;
1	10	25	19&lt;BR /&gt;
2	8	0	18&lt;BR /&gt;
3	23	9	27&lt;BR /&gt;
&lt;BR /&gt;
Do I need to use an array for this, or would transpose work in some way?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.

Message was edited by: uksusu</description>
    <pubDate>Fri, 05 Nov 2010 17:16:39 GMT</pubDate>
    <dc:creator>uksusu</dc:creator>
    <dc:date>2010-11-05T17:16:39Z</dc:date>
    <item>
      <title>Transposing Numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29451#M6923</link>
      <description>I have a large dataset similar in set up to that below:&lt;BR /&gt;
&lt;BR /&gt;
account	date	value&lt;BR /&gt;
1	month1	10&lt;BR /&gt;
1	month2	25&lt;BR /&gt;
1	month3	19&lt;BR /&gt;
2	month1	8&lt;BR /&gt;
2	month2	0&lt;BR /&gt;
2	month3	18&lt;BR /&gt;
3	month1	23&lt;BR /&gt;
3	month2	9&lt;BR /&gt;
3	month3	27&lt;BR /&gt;
&lt;BR /&gt;
What I want to do is to collapse the account to 1 row per account and create a new dataset to look like this:&lt;BR /&gt;
account	month1	month2	month3&lt;BR /&gt;
1	10	25	19&lt;BR /&gt;
2	8	0	18&lt;BR /&gt;
3	23	9	27&lt;BR /&gt;
&lt;BR /&gt;
Do I need to use an array for this, or would transpose work in some way?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for any help.

Message was edited by: uksusu</description>
      <pubDate>Fri, 05 Nov 2010 17:16:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29451#M6923</guid>
      <dc:creator>uksusu</dc:creator>
      <dc:date>2010-11-05T17:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing Numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29452#M6924</link>
      <description>Check PROC TRANSPOSE in the SAS DOC, the forum archives, or search the SAS support website for technical / conference reference material on the topic.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
Suggested Google advanced search argument, this topic / post:&lt;BR /&gt;
&lt;BR /&gt;
proc transpose site:sas.com</description>
      <pubDate>Fri, 05 Nov 2010 17:23:50 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29452#M6924</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2010-11-05T17:23:50Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing Numbers</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29453#M6925</link>
      <description>Thanks Scott&lt;BR /&gt;
&lt;BR /&gt;
It worked a treat.</description>
      <pubDate>Mon, 08 Nov 2010 09:41:27 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/Transposing-Numbers/m-p/29453#M6925</guid>
      <dc:creator>uksusu</dc:creator>
      <dc:date>2010-11-08T09:41:27Z</dc:date>
    </item>
  </channel>
</rss>

