<?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: Heading in Transposed data set in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317720#M69583</link>
    <description>&lt;P&gt;It would help to provide some example input data and what you expect.&lt;/P&gt;
&lt;P&gt;Since what you are looking at are not "headers" but variable names you may not be able to have the value as a variable name unless the value follows the SAS rules for variable names: starts with a letter or _ character, contains only letters, digits and _, and the length is 32 or fewer characters. Or you get to play around with nonstanrd varaible names that means you spend a lot of time adding ' 'n to most if not all of the variable names when used in code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways to get close but everything not a numeral, letter or _ will become _.&lt;/P&gt;</description>
    <pubDate>Thu, 08 Dec 2016 22:29:33 GMT</pubDate>
    <dc:creator>ballardw</dc:creator>
    <dc:date>2016-12-08T22:29:33Z</dc:date>
    <item>
      <title>Heading in Transposed data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317712#M69581</link>
      <description>&lt;P&gt;How do I program to use the field value as column heading, instead of decoded value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Code below makes columns with FATESTCD DECODED values as its column heading:&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;PROC TRANSPOSE DATA=JR.CTYPE OUT=JR.CTYPE_TR(DROP=_NAME_ _LABEL_);&lt;BR /&gt; BY USUBJID;&lt;BR /&gt; ID C_TYPE;&lt;BR /&gt; VAR FATESTCD;&lt;BR /&gt;RUN;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;How do I change the program, so the column headings take on the field value, instead of the decoded value?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thank you very much in advance!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;zz&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 22:17:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317712#M69581</guid>
      <dc:creator>zz</dc:creator>
      <dc:date>2016-12-08T22:17:03Z</dc:date>
    </item>
    <item>
      <title>Re: Heading in Transposed data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317719#M69582</link>
      <description>&lt;P&gt;ID is what's used to specify the variable name. I'm not sure what you mean about coded and decoded value.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;You can also use IDLABEL to specify a label.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 22:29:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317719#M69582</guid>
      <dc:creator>Reeza</dc:creator>
      <dc:date>2016-12-08T22:29:28Z</dc:date>
    </item>
    <item>
      <title>Re: Heading in Transposed data set</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317720#M69583</link>
      <description>&lt;P&gt;It would help to provide some example input data and what you expect.&lt;/P&gt;
&lt;P&gt;Since what you are looking at are not "headers" but variable names you may not be able to have the value as a variable name unless the value follows the SAS rules for variable names: starts with a letter or _ character, contains only letters, digits and _, and the length is 32 or fewer characters. Or you get to play around with nonstanrd varaible names that means you spend a lot of time adding ' 'n to most if not all of the variable names when used in code.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;There are ways to get close but everything not a numeral, letter or _ will become _.&lt;/P&gt;</description>
      <pubDate>Thu, 08 Dec 2016 22:29:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Heading-in-Transposed-data-set/m-p/317720#M69583</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-12-08T22:29:33Z</dc:date>
    </item>
  </channel>
</rss>

