<?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: export a dataset with the variables in the rows, and the observations in the columns in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93415#M26534</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc transpose data=sashelp.class out=class;&lt;/P&gt;&lt;P&gt;var _all_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2012 18:07:40 GMT</pubDate>
    <dc:creator>Reeza</dc:creator>
    <dc:date>2012-10-12T18:07:40Z</dc:date>
    <item>
      <title>export a dataset with the variables in the rows, and the observations in the columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93414#M26533</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;My dataset is in SAS.&amp;nbsp; In the dataset currently, each row represents one observation and each column represents one variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But I need to create and export a version of my SAS dataset in which each column represents one observation, and each row represents one variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In other words, I want to go from something like this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="269"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD class="xl65" width="56"&gt;Fname&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="51"&gt;Lname&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="42"&gt;Age&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;" width="56"&gt;Zipcode&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;1&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;John&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Smith&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30303&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;2&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Mary&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Jones&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30304&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;3&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Sue&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Wilson&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;54&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30305&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;4&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Anders&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;43&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30306&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;5&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Sam&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Rogers&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30307&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;6&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Doe&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30308&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;7&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Tom&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Smith&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30309&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;8&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Kate&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Adams&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30310&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD align="right" height="20"&gt;9&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none;"&gt;Greg&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Wade&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;38&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30311&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="503"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD height="20" width="64"&gt;&lt;/TD&gt;&lt;TD align="right" width="56"&gt;1&lt;/TD&gt;&lt;TD align="right" width="51"&gt;2&lt;/TD&gt;&lt;TD align="right" width="42"&gt;3&lt;/TD&gt;&lt;TD align="right" width="56"&gt;4&lt;/TD&gt;&lt;TD align="right" width="51"&gt;5&lt;/TD&gt;&lt;TD align="right" width="49"&gt;6&lt;/TD&gt;&lt;TD align="right" width="42"&gt;7&lt;/TD&gt;&lt;TD align="right" width="43"&gt;8&lt;/TD&gt;&lt;TD align="right" width="49"&gt;9&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20"&gt;Fname&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;John&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Mary&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Sue&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Bob&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Sam&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Chris&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Tom&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Kate&lt;/TD&gt;&lt;TD class="xl65" style="border-left: none;"&gt;Greg&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Lname&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Smith&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Jones&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Wilson&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Anders&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Rogers&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Doe&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Smith&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Adams&lt;/TD&gt;&lt;TD class="xl65" style="border-top: none; border-left: none;"&gt;Wade&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Age&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;32&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;28&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;54&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;43&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;19&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;27&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;18&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;41&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;38&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="20" style="border-top: none;"&gt;Zipcode&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30303&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30304&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30305&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30306&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30307&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30308&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30309&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30310&lt;/TD&gt;&lt;TD align="right" class="xl65" style="border-top: none; border-left: none;"&gt;30311&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In MS Excel, I can do this using the option "Edit &amp;gt;&amp;gt; Copy &amp;gt;&amp;gt; Paste Special &amp;gt;&amp;gt; Transpose" but I need to do this operation in SAS and not in Excel.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My SAS dataset is too large for me to manipulate manage it in Excel, so manually using the "Transpose" feature in Excel is not an option for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any suggestions? &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:00:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93414#M26533</guid>
      <dc:creator>Bautista</dc:creator>
      <dc:date>2012-10-12T18:00:26Z</dc:date>
    </item>
    <item>
      <title>Re: export a dataset with the variables in the rows, and the observations in the columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93415#M26534</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc transpose data=sashelp.class out=class;&lt;/P&gt;&lt;P&gt;var _all_;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:07:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93415#M26534</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2012-10-12T18:07:40Z</dc:date>
    </item>
    <item>
      <title>Re: export a dataset with the variables in the rows, and the observations in the columns</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93416#M26535</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;THANK YOU!&amp;nbsp; Worked perfectly.&amp;nbsp; Awesome!&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2012 18:21:43 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/export-a-dataset-with-the-variables-in-the-rows-and-the/m-p/93416#M26535</guid>
      <dc:creator>Bautista</dc:creator>
      <dc:date>2012-10-12T18:21:43Z</dc:date>
    </item>
  </channel>
</rss>

