<?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: turn one row from an existing table into a column in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270388#M53715</link>
    <description>&lt;P&gt;I knew it had to be something simple. &amp;nbsp;Thank you!&lt;/P&gt;</description>
    <pubDate>Fri, 13 May 2016 15:48:21 GMT</pubDate>
    <dc:creator>grungoo</dc:creator>
    <dc:date>2016-05-13T15:48:21Z</dc:date>
    <item>
      <title>turn one row from an existing table into a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270377#M53710</link>
      <description>&lt;P&gt;It seems like this should be pretty simple, but I can't find a way to make it work. &amp;nbsp;I have a table with multiple observations&amp;nbsp;and 20 variables. &amp;nbsp;I want to pull one observation&amp;nbsp;from that table and put the values into a column.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When I try proc transpose it only gives me half the variables, namely those with numerical values.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just need to go from this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;STRONG&gt;name&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;this&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;that&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;other&lt;/STRONG&gt;&lt;/TD&gt;&lt;TD&gt;&lt;STRONG&gt;those&lt;/STRONG&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;TD&gt;male&lt;/TD&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;TD&gt;5/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;to this:&lt;/P&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;Bob&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;male&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;42&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD&gt;5/31/2016&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Is there any easy way to do this?&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 15:31:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270377#M53710</guid>
      <dc:creator>grungoo</dc:creator>
      <dc:date>2016-05-13T15:31:28Z</dc:date>
    </item>
    <item>
      <title>Re: turn one row from an existing table into a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270384#M53714</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://communities.sas.com/t5/user/viewprofilepage/user-id/85455"&gt;@grungoo﻿&lt;/a&gt;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;By default, PROC TRANSPOSE transposes only numeric variables, but if you list character variables in the VAR statement, they will be transposed as well. So, the simplest way to transpose &lt;EM&gt;all&lt;/EM&gt; variables is probably to use the statement&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;var _all_;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;in the PROC TRANSPOSE step.&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 15:44:16 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270384#M53714</guid>
      <dc:creator>FreelanceReinh</dc:creator>
      <dc:date>2016-05-13T15:44:16Z</dc:date>
    </item>
    <item>
      <title>Re: turn one row from an existing table into a column</title>
      <link>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270388#M53715</link>
      <description>&lt;P&gt;I knew it had to be something simple. &amp;nbsp;Thank you!&lt;/P&gt;</description>
      <pubDate>Fri, 13 May 2016 15:48:21 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/turn-one-row-from-an-existing-table-into-a-column/m-p/270388#M53715</guid>
      <dc:creator>grungoo</dc:creator>
      <dc:date>2016-05-13T15:48:21Z</dc:date>
    </item>
  </channel>
</rss>

