<?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 Transpose data in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328824#M73473</link>
    <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to crreate a table having summary of report submitted in each month and experiencing some problem. Can somebody help me to overcome the obstacle. Sample of the table, &amp;nbsp;I am havcing as well as I am expecting are given below. Thank you in advance for your kind reply.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id mon $ count ;
cards;
101 jan 10
101 feb 20
101 mar 25
101 jun 20
102 jan 10
102 feb 20
102 Apr 25
102 may 20
103 Apr 10
103 feb 20
103 mar 25
103 may 20
103 jul 25
;
run;


data want;
input id jan feb mar apr may jun jul;
cards;
101 10 20 25 . . 20 .
102 10 20 . 25 20 . .
103 . 20 25 10 20 . 25
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Tue, 31 Jan 2017 17:19:06 GMT</pubDate>
    <dc:creator>DeepakSwain</dc:creator>
    <dc:date>2017-01-31T17:19:06Z</dc:date>
    <item>
      <title>Transpose data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328824#M73473</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;&lt;P&gt;I am trying to crreate a table having summary of report submitted in each month and experiencing some problem. Can somebody help me to overcome the obstacle. Sample of the table, &amp;nbsp;I am havcing as well as I am expecting are given below. Thank you in advance for your kind reply.&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data have;
input id mon $ count ;
cards;
101 jan 10
101 feb 20
101 mar 25
101 jun 20
102 jan 10
102 feb 20
102 Apr 25
102 may 20
103 Apr 10
103 feb 20
103 mar 25
103 may 20
103 jul 25
;
run;


data want;
input id jan feb mar apr may jun jul;
cards;
101 10 20 25 . . 20 .
102 10 20 . 25 20 . .
103 . 20 25 10 20 . 25
;
run;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:19:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328824#M73473</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2017-01-31T17:19:06Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328833#M73476</link>
      <description>&lt;P&gt;Often, a good tool to transpose data is PROC TRANSPOSE:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc transpose data=have out=want (drop=_name_);&lt;/P&gt;
&lt;P&gt;var count;&lt;/P&gt;
&lt;P&gt;id mon;&lt;/P&gt;
&lt;P&gt;by id;&lt;/P&gt;
&lt;P&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;The documentation describes the purpose of each of the statements.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 17:45:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328833#M73476</guid>
      <dc:creator>Astounding</dc:creator>
      <dc:date>2017-01-31T17:45:45Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328847#M73478</link>
      <description>&lt;P&gt;Of course if you are generating a report then perhaps a report procedure is in order.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc report data=have nowd;
   column id (mon, count);
   define id/group;
   define mon/across;
   define count/analysis ;
run;&lt;/PRE&gt;</description>
      <pubDate>Tue, 31 Jan 2017 18:45:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328847#M73478</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2017-01-31T18:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328870#M73489</link>
      <description>&lt;P&gt;Thank you for your valuable reply.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:56:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328870#M73489</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2017-01-31T20:56:16Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose data</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328872#M73490</link>
      <description>&lt;P&gt;Thank you for providing an alternative approach. Appreciated.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;</description>
      <pubDate>Tue, 31 Jan 2017 20:57:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-data/m-p/328872#M73490</guid>
      <dc:creator>DeepakSwain</dc:creator>
      <dc:date>2017-01-31T20:57:06Z</dc:date>
    </item>
  </channel>
</rss>

