<?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 rotate column header in proc report in SAS Health and Life Sciences</title>
    <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38908#M1254</link>
    <description>Hi:&lt;BR /&gt;
  What you are seeing is the only kind of vertical header you can get -- easily. Headers are not really rotated, there is just the equivalent of a line feed or carriage return between each character in the header. Word and Excel do rotation differently.&lt;BR /&gt;
 &lt;BR /&gt;
  With SAS 9.2, you can pass RTF rotation control strings to the table using TAGSETS.RTF, as described in this paper:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug08/np/np11.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug08/np/np11.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Also described in the paper is the type of macro used by the paper author to post process a SAS 9.1 RTF file in order to rotate headers.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
    <pubDate>Thu, 11 Jun 2009 06:08:40 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-06-11T06:08:40Z</dc:date>
    <item>
      <title>How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38901#M1247</link>
      <description>Hi I am using sas 9.1 version.My output is in rtf and I am trying to get to rotate the header variables by 90 degrees.So far I have been un successful.&lt;BR /&gt;
I even looked at on line programs but the rotate option is only available for sas 9.2&lt;BR /&gt;
&lt;BR /&gt;
Can anyone please help me with this?&lt;BR /&gt;
&lt;BR /&gt;
Thanks for your time.&lt;BR /&gt;
Regards,&lt;BR /&gt;
April.</description>
      <pubDate>Fri, 29 May 2009 17:12:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38901#M1247</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-05-29T17:12:05Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38902#M1248</link>
      <description>Apparently, not a simple process using a STYLE=[...] override.  A reference I found mentioned this paper and indicated that the only solution is a post-edit on the SAS-generated RTF document.  As well as this paper, also recommend reviewing the Microsoft standard which is referenced in the paper below, for particulars.&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
ODS RTF: Practical Tips&lt;BR /&gt;
Cindy Tong, PPD Development&lt;BR /&gt;
&lt;A href="http://www.nesug.org/Proceedings/nesug03/at/at007.pdf" target="_blank"&gt;http://www.nesug.org/Proceedings/nesug03/at/at007.pdf&lt;/A&gt;</description>
      <pubDate>Fri, 29 May 2009 17:39:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38902#M1248</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-05-29T17:39:06Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38903#M1249</link>
      <description>Hi:&lt;BR /&gt;
  Until you have 9.2 and TAGSETS.RTF, you might try some of the techniques shown in these previous forum postings:&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=10428⢼" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=10428⢼&lt;/A&gt;&lt;BR /&gt;
&lt;A href="http://support.sas.com/forums/thread.jspa?messageID=7928Ỹ" target="_blank"&gt;http://support.sas.com/forums/thread.jspa?messageID=7928Ỹ&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Tue, 02 Jun 2009 05:02:45 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38903#M1249</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-02T05:02:45Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38904#M1250</link>
      <description>Hi eveyone,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for your help.I will definately try it out.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
April.</description>
      <pubDate>Thu, 04 Jun 2009 14:33:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38904#M1250</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-04T14:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38905#M1251</link>
      <description>Hi !&lt;BR /&gt;
I tried using the code mentioned below with escapechar and n in proc report but the output it displays is A&lt;BR /&gt;
                                   nG&lt;BR /&gt;
                                   nE&lt;BR /&gt;
is it because i am trying to output ods rtf file or is there something i am doing wrong.&lt;BR /&gt;
Please advise.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
April.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.class nowd;  column name age height;  define name / order 'N~nA~nM~nE';  define age / display 'A~nG~nE';  define height/ display 'H~nE~nI~nG~nH~nT';run;</description>
      <pubDate>Thu, 04 Jun 2009 14:41:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38905#M1251</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-04T14:41:22Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38906#M1252</link>
      <description>Hi:&lt;BR /&gt;
  Do you have &lt;BR /&gt;
ODS ESCAPECHAR='~';&lt;BR /&gt;
&lt;BR /&gt;
in your code -- before the proc report step where you use ~n??? The other thing is that sometimes, you may need to use ~1n instead of ~n.&lt;BR /&gt;
&lt;BR /&gt;
When I run this sample code, I get the expected results. If you are trying to open your LISTING window output in Word, then you will see/should see the ~n. Also, make sure that your PROC REPORT split character is NOT set to ~. You don't actually have to use ODS ESCAPECHAR to get each character in a header on a separate line...you could do it with just the SPLIT character, as shown in report #2.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
&lt;BR /&gt;
[pre]&lt;BR /&gt;
&lt;BR /&gt;
ods listing close;&lt;BR /&gt;
ods rtf file='c:\temp\vert_hdr.rtf';&lt;BR /&gt;
ods escapechar='~';&lt;BR /&gt;
                                     &lt;BR /&gt;
proc report data=sashelp.class nowd split='#'; &lt;BR /&gt;
  title '1) With Escapechar';&lt;BR /&gt;
  column name age height; &lt;BR /&gt;
  define name / order 'N~nA~nM~nE'; &lt;BR /&gt;
  define age / display 'A~nG~nE'; &lt;BR /&gt;
  define height/ display 'H~nE~nI~nG~nH~nT';&lt;BR /&gt;
run; &lt;BR /&gt;
                                   &lt;BR /&gt;
proc report data=sashelp.class nowd split='#'; &lt;BR /&gt;
  title '2) With Split Only';&lt;BR /&gt;
  column name age height; &lt;BR /&gt;
  define name / order 'N#A#M#E'; &lt;BR /&gt;
  define age / display 'A#G#E'; &lt;BR /&gt;
  define height/ display 'H#E#I#G#H#T';&lt;BR /&gt;
run; &lt;BR /&gt;
ods rtf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Sat, 06 Jun 2009 02:35:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38906#M1252</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-06T02:35:00Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38907#M1253</link>
      <description>Thanks a lot Cynthia...&lt;BR /&gt;
It helped and I did get the output but I was expecting it to rotate by 90 degrees.&lt;BR /&gt;
Instead the the variables appeared as&lt;BR /&gt;
 P&lt;BR /&gt;
 I &lt;BR /&gt;
 D &lt;BR /&gt;
instead i want the varibles to read as they read when I use rotate option in excel spreadhseet.I am unable to add the screen shot here to show you .&lt;BR /&gt;
The code you sent outputs them aligned vertically and it does the job for now.&lt;BR /&gt;
&lt;BR /&gt;
Please advise if there is a code or macros that will rotate them in sas 9.1 version.&lt;BR /&gt;
Thanks  again for your time and help.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
April.</description>
      <pubDate>Wed, 10 Jun 2009 17:37:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38907#M1253</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-10T17:37:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38908#M1254</link>
      <description>Hi:&lt;BR /&gt;
  What you are seeing is the only kind of vertical header you can get -- easily. Headers are not really rotated, there is just the equivalent of a line feed or carriage return between each character in the header. Word and Excel do rotation differently.&lt;BR /&gt;
 &lt;BR /&gt;
  With SAS 9.2, you can pass RTF rotation control strings to the table using TAGSETS.RTF, as described in this paper:&lt;BR /&gt;
&lt;A href="http://www.nesug.org/proceedings/nesug08/np/np11.pdf" target="_blank"&gt;http://www.nesug.org/proceedings/nesug08/np/np11.pdf&lt;/A&gt;&lt;BR /&gt;
 &lt;BR /&gt;
  Also described in the paper is the type of macro used by the paper author to post process a SAS 9.1 RTF file in order to rotate headers.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 11 Jun 2009 06:08:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38908#M1254</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-11T06:08:40Z</dc:date>
    </item>
    <item>
      <title>Re: How to rotate column header in proc report</title>
      <link>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38909#M1255</link>
      <description>Cynthia,&lt;BR /&gt;
&lt;BR /&gt;
Thanks a lot for your time n patience with me.&lt;BR /&gt;
I really appreciate your help.&lt;BR /&gt;
The paper on macro was really helpful.I hope our company upgrades to sas 9.2&lt;BR /&gt;
soon.&lt;BR /&gt;
&lt;BR /&gt;
Regards,&lt;BR /&gt;
April.</description>
      <pubDate>Thu, 11 Jun 2009 19:13:34 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Health-and-Life-Sciences/How-to-rotate-column-header-in-proc-report/m-p/38909#M1255</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-06-11T19:13:34Z</dc:date>
    </item>
  </channel>
</rss>

