<?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: Transposing table in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422163#M103807</link>
    <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if the variable Age1 and Age1 are characters, then the code is not working.&lt;/P&gt;
&lt;P&gt;This is the other example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 162pt;" border="0" width="216" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl66" style="height: 12.75pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;code1&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;code2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;A&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;C&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;j&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;D&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;f&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;E&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 270pt;" border="0" width="360" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl66" style="height: 12.75pt; width: 54pt;"&gt;CODE&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;A&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;C&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;D&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;E&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;code1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;f&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;code2&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;j&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
    <pubDate>Mon, 18 Dec 2017 23:11:53 GMT</pubDate>
    <dc:creator>ursula</dc:creator>
    <dc:date>2017-12-18T23:11:53Z</dc:date>
    <item>
      <title>Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422155#M103804</link>
      <description>&lt;P&gt;Hi there,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I tried to transpose a table, see below example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 162pt;" border="0" width="216" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl67" style="height: 12.75pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" class="xl67" style="border-left: none; width: 54pt;"&gt;Age1&lt;/TD&gt;
&lt;TD width="72" class="xl67" style="border-left: none; width: 54pt;"&gt;Age1&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;A&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;C&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;D&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;E&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;
&lt;TD align="right" class="xl66" style="border-top: none; border-left: none;"&gt;80&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 270pt;" border="0" width="360" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl66" style="height: 12.75pt; width: 54pt;"&gt;AGE&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;A&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;C&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;D&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;E&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;Age1&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;10&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;50&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;70&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;Ag2&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;20&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;40&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;60&lt;/TD&gt;
&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;80&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" style="height: 12.75pt;"&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;TD&gt;&amp;nbsp;&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Any help will be very appreciated.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 22:40:52 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422155#M103804</guid>
      <dc:creator>ursula</dc:creator>
      <dc:date>2017-12-18T22:40:52Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422159#M103806</link>
      <description>&lt;P&gt;&lt;BR /&gt;data have;&lt;BR /&gt;input ID $ Age1 Age2;&lt;BR /&gt;datalines;&lt;BR /&gt;A 10 20&lt;BR /&gt;C 30 40&lt;BR /&gt;D 50 60&lt;BR /&gt;E 70 80&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc transpose data=have out=want;&lt;BR /&gt;id id ;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;You could have tried yourself. it's easy copy paste&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 22:48:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422159#M103806</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-18T22:48:14Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422163#M103807</link>
      <description>&lt;P&gt;Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I wonder if the variable Age1 and Age1 are characters, then the code is not working.&lt;/P&gt;
&lt;P&gt;This is the other example:&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 162pt;" border="0" width="216" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl66" style="height: 12.75pt; width: 54pt;"&gt;ID&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;code1&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;code2&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;A&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;C&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;j&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;D&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;f&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl65" style="height: 12.75pt; border-top: none;"&gt;E&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I want:&lt;/P&gt;
&lt;TABLE style="border-collapse: collapse; width: 270pt;" border="0" width="360" cellspacing="0" cellpadding="0"&gt;
&lt;TBODY&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD width="72" height="17" class="xl66" style="height: 12.75pt; width: 54pt;"&gt;CODE&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;A&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;C&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;D&lt;/TD&gt;
&lt;TD width="72" class="xl66" style="border-left: none; width: 54pt;"&gt;E&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;code1&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;x&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;f&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;t&lt;/TD&gt;
&lt;/TR&gt;
&lt;TR style="height: 12.75pt;"&gt;
&lt;TD height="17" class="xl66" style="height: 12.75pt; border-top: none;"&gt;code2&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;j&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;b&lt;/TD&gt;
&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;h&lt;/TD&gt;
&lt;/TR&gt;
&lt;/TBODY&gt;
&lt;/TABLE&gt;</description>
      <pubDate>Mon, 18 Dec 2017 23:11:53 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422163#M103807</guid>
      <dc:creator>ursula</dc:creator>
      <dc:date>2017-12-18T23:11:53Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422164#M103808</link>
      <description>&lt;P&gt;proc transpose data=have out=want;&lt;BR /&gt;id id;&lt;BR /&gt;var code1 code2;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 18 Dec 2017 23:15:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422164#M103808</guid>
      <dc:creator>novinosrin</dc:creator>
      <dc:date>2017-12-18T23:15:22Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422251#M103820</link>
      <description>&lt;P&gt;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/34666"&gt;@ursula&lt;/a&gt;&amp;nbsp;you can try the below,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input ID $ Age1 Age2;&lt;BR /&gt;datalines;&lt;BR /&gt;A 10 20&lt;BR /&gt;C 30 40&lt;BR /&gt;D 50 60&lt;BR /&gt;E 70 80&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;proc transpose data=have;&lt;BR /&gt;var age:;&lt;BR /&gt;ID ID;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 12:03:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422251#M103820</guid>
      <dc:creator>soham_sas</dc:creator>
      <dc:date>2017-12-19T12:03:25Z</dc:date>
    </item>
    <item>
      <title>Re: Transposing table</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422514#M103901</link>
      <description>&lt;P&gt;Perfect!&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you so much.&lt;/P&gt;</description>
      <pubDate>Tue, 19 Dec 2017 22:03:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transposing-table/m-p/422514#M103901</guid>
      <dc:creator>ursula</dc:creator>
      <dc:date>2017-12-19T22:03:56Z</dc:date>
    </item>
  </channel>
</rss>

