<?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: how to stack variables in different columns? in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181914#M46327</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at proc transpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 13 Oct 2014 10:01:41 GMT</pubDate>
    <dc:creator>RamKumar</dc:creator>
    <dc:date>2014-10-13T10:01:41Z</dc:date>
    <item>
      <title>how to stack variables in different columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181913#M46326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a data table that consists of customers&amp;nbsp; ID's and their telephone numbers in the following manner:&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;telephone number&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;&lt;P&gt;5550&lt;/P&gt;&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9613456789&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5550&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9613657894&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6758&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9611567854&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Which function enables me to have the following format :&lt;/P&gt;&lt;TABLE border="1" class="jiveBorder" style="border: 1px solid rgb(0, 0, 0); width: 100%;"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;Customer ID&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;telephone number 1&lt;/STRONG&gt;&lt;/TH&gt;&lt;TH style="text-align: center; background-color: #6690bc; color: #ffffff; padding: 2px;" valign="middle"&gt;&lt;STRONG&gt;telephone number 2&lt;/STRONG&gt;&lt;/TH&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;5550&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9613456789&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9613657894&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD style="padding: 2px;"&gt;6758&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;9611567854&lt;/TD&gt;&lt;TD style="padding: 2px;"&gt;.&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you in advance for all your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 09:48:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181913#M46326</guid>
      <dc:creator>Ramgem</dc:creator>
      <dc:date>2014-10-13T09:48:57Z</dc:date>
    </item>
    <item>
      <title>Re: how to stack variables in different columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181914#M46327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have a look at proc transpose.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 10:01:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181914#M46327</guid>
      <dc:creator>RamKumar</dc:creator>
      <dc:date>2014-10-13T10:01:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to stack variables in different columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181915#M46328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data have;&lt;BR /&gt;input Customer_ID&amp;nbsp; telephone_number $;&lt;BR /&gt;datalines;&lt;BR /&gt;5550 9613456789&lt;BR /&gt;5550 9613657894&lt;BR /&gt;6758 9611567854&lt;BR /&gt;;&lt;/P&gt;&lt;P&gt;proc transpose data=have out=want(drop=_name_) prefix=Telephone;&lt;BR /&gt;by Customer_ID;&lt;BR /&gt;var telephone_number;&lt;BR /&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 10:28:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181915#M46328</guid>
      <dc:creator>Loko</dc:creator>
      <dc:date>2014-10-13T10:28:54Z</dc:date>
    </item>
    <item>
      <title>Re: how to stack variables in different columns?</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181916#M46329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you that was very helpfull&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Oct 2014 12:34:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/how-to-stack-variables-in-different-columns/m-p/181916#M46329</guid>
      <dc:creator>Ramgem</dc:creator>
      <dc:date>2014-10-13T12:34:07Z</dc:date>
    </item>
  </channel>
</rss>

