<?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: Transponse columns in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transponse-columns/m-p/788833#M252327</link>
    <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   input country $ company $ type $ jan feb mar apr;
   datalines;
US Sico A 12 15 18 20
US Polo B 8 7 24 25
UK Sico B 6 5 5 4
UK Vax A 16 20 22 24
;

proc transpose data=example out=want(rename=( _name_=month col1=prod));
  by country company type notsorted;
  var jan--apr;
 run;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
    <pubDate>Fri, 07 Jan 2022 12:15:19 GMT</pubDate>
    <dc:creator>novinosrin</dc:creator>
    <dc:date>2022-01-07T12:15:19Z</dc:date>
    <item>
      <title>Transponse columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transponse-columns/m-p/788823#M252321</link>
      <description>&lt;P&gt;I always find it very difficult to transpose tables. In my data, I have values for each month given in a separate column. I would like to make 2 columns out of this, one with the month name, the other with the value from the column. Just like in the example.&lt;/P&gt;
&lt;P&gt;Before&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   input country $ company $ type $ jan feb mar apr;
   datalines;
US Sico A 12 15 18 20
US Polo B 8 7 24 25
UK Sico B 6 5 5 4
UK Vax A 16 20 22 24
;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;After&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   input country $ company $ type $ month $ prod;
   datalines;
US Sico A jan 12
US Sico A feb 15
US Sico A mar 18
US Sico A apr 20
US Polo B jan 8
US Polo B feb 7
US Polo B mar 24
US Polo B apr 25
;
*and so on&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;Can you help me with this transposition?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Fri, 07 Jan 2022 11:45:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transponse-columns/m-p/788823#M252321</guid>
      <dc:creator>PatrykSAS</dc:creator>
      <dc:date>2022-01-07T11:45:47Z</dc:date>
    </item>
    <item>
      <title>Re: Transponse columns</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transponse-columns/m-p/788833#M252327</link>
      <description>&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;data example;
   input country $ company $ type $ jan feb mar apr;
   datalines;
US Sico A 12 15 18 20
US Polo B 8 7 24 25
UK Sico B 6 5 5 4
UK Vax A 16 20 22 24
;

proc transpose data=example out=want(rename=( _name_=month col1=prod));
  by country company type notsorted;
  var jan--apr;
 run;
 &lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Fri, 07 Jan 2022 12:15:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transponse-columns/m-p/788833#M252327</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2022-01-07T12:15:19Z</dc:date>
    </item>
  </channel>
</rss>

