<?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 Transpose with Column Labels in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Transpose-with-Column-Labels/m-p/560015#M156474</link>
    <description>&lt;P&gt;&lt;BR /&gt;Hi, I have this dataset HAVE which I want to "transpose" into dataset WANT, along with the column labels. &lt;BR /&gt;I am not sure how to do this. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input name $ gender $ gender_label $;&lt;BR /&gt;cards;&lt;BR /&gt;Ann F Female&lt;BR /&gt;Mark M Male&lt;BR /&gt;Kate F Female&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;input name $ F M ;&lt;BR /&gt;cards;&lt;BR /&gt;Ann 1 .&lt;BR /&gt;Mark . 1&lt;BR /&gt;Kate 1 .&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*If there's a way to parameterize the labels as well*/&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set want;&lt;BR /&gt;label F = "Female" M="Male";&lt;BR /&gt;run;&lt;/P&gt;</description>
    <pubDate>Mon, 20 May 2019 07:04:48 GMT</pubDate>
    <dc:creator>angeliquec</dc:creator>
    <dc:date>2019-05-20T07:04:48Z</dc:date>
    <item>
      <title>Transpose with Column Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-with-Column-Labels/m-p/560015#M156474</link>
      <description>&lt;P&gt;&lt;BR /&gt;Hi, I have this dataset HAVE which I want to "transpose" into dataset WANT, along with the column labels. &lt;BR /&gt;I am not sure how to do this. Thank you!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data have;&lt;BR /&gt;input name $ gender $ gender_label $;&lt;BR /&gt;cards;&lt;BR /&gt;Ann F Female&lt;BR /&gt;Mark M Male&lt;BR /&gt;Kate F Female&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;input name $ F M ;&lt;BR /&gt;cards;&lt;BR /&gt;Ann 1 .&lt;BR /&gt;Mark . 1&lt;BR /&gt;Kate 1 .&lt;BR /&gt;;&lt;BR /&gt;run;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;/*If there's a way to parameterize the labels as well*/&lt;/P&gt;
&lt;P&gt;data want;&lt;BR /&gt;set want;&lt;BR /&gt;label F = "Female" M="Male";&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 07:04:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-with-Column-Labels/m-p/560015#M156474</guid>
      <dc:creator>angeliquec</dc:creator>
      <dc:date>2019-05-20T07:04:48Z</dc:date>
    </item>
    <item>
      <title>Re: Transpose with Column Labels</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Transpose-with-Column-Labels/m-p/560020#M156478</link>
      <description>&lt;P&gt;Look into the idlabel statement in proc transpose:&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc transpose
  data=want
  out=have (drop=_name_)
;
by name;
id gender;
idlabel gender_label;
run;&lt;/CODE&gt;&lt;/PRE&gt;
&lt;P&gt;(Untested, no SAS at the moment)&lt;/P&gt;</description>
      <pubDate>Mon, 20 May 2019 07:13:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Transpose-with-Column-Labels/m-p/560020#M156478</guid>
      <dc:creator>Kurt_Bremser</dc:creator>
      <dc:date>2019-05-20T07:13:10Z</dc:date>
    </item>
  </channel>
</rss>

