<?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 Rotated Text Heading in Proc Report in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41185#M5619</link>
    <description>Does anyone know if there is a way to get Proc Report to render rotated text that spans multiple rows?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have a requirement from a customer to create a PDF report.  The first cell in the report has a text description that runs vertically (the text) and spans 5 rows of data.&lt;BR /&gt;
&lt;BR /&gt;
My only thought is to make an image and use pre-image to load it into a cell.  However, I'm not sure I can get the image to span multiple rows.  &lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
John</description>
    <pubDate>Thu, 04 Jun 2009 19:27:22 GMT</pubDate>
    <dc:creator>jcbell</dc:creator>
    <dc:date>2009-06-04T19:27:22Z</dc:date>
    <item>
      <title>Rotated Text Heading in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41185#M5619</link>
      <description>Does anyone know if there is a way to get Proc Report to render rotated text that spans multiple rows?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
I have a requirement from a customer to create a PDF report.  The first cell in the report has a text description that runs vertically (the text) and spans 5 rows of data.&lt;BR /&gt;
&lt;BR /&gt;
My only thought is to make an image and use pre-image to load it into a cell.  However, I'm not sure I can get the image to span multiple rows.  &lt;BR /&gt;
&lt;BR /&gt;
Any ideas?&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks,&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
John</description>
      <pubDate>Thu, 04 Jun 2009 19:27:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41185#M5619</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2009-06-04T19:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: Rotated Text Heading in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41186#M5620</link>
      <description>I'm not aware of any way to do this with PROC REPORT. If it can be done at all, it would have to be via DATA _NULL_ and ODS Object Oriented features (http://www2.sas.com/proceedings/sugi28/022-28.pdf). I'd suggest consulting with Tech. Support if you want to try that avenue.</description>
      <pubDate>Fri, 05 Jun 2009 17:24:40 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41186#M5620</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-06-05T17:24:40Z</dc:date>
    </item>
    <item>
      <title>Re: Rotated Text Heading in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41187#M5621</link>
      <description>Hi:&lt;BR /&gt;
  This really isn't a rotated header, so much as a "put every character in the header on a separate line" solution. Basically, you put a "line feed" between every character in the spanning header. Proc Report will do a spanning header for you. See #1 report. Then, using ODS ESCAPECHAR, you can put a line feed between every letter in the header. See #2 report. The "line feed" is the ODS ESCAPECHAR + n...so if ESCAPECHAR is ^, then ^n is the line feed.&lt;BR /&gt;
 &lt;BR /&gt;
  Tech Support may have some other ideas. This is sort of the "brute force" method.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
[pre]&lt;BR /&gt;
ods pdf file='fake_vertical1.pdf';&lt;BR /&gt;
  ods escapechar='^';&lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
    title '1) Make Spanning Header -- not vertical';&lt;BR /&gt;
    column ('SPAN - HDR' name age height weight sex) x y z;&lt;BR /&gt;
    define name / order 'Name';&lt;BR /&gt;
    define age / order 'Age';&lt;BR /&gt;
    define height / sum;&lt;BR /&gt;
    define weight / sum;&lt;BR /&gt;
    define sex / display;&lt;BR /&gt;
    define x / computed 'X';&lt;BR /&gt;
    define y /computed 'Y';&lt;BR /&gt;
    define z / computed 'Z';&lt;BR /&gt;
    compute x;&lt;BR /&gt;
      x = age * 100 + height.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute y;&lt;BR /&gt;
      y = age * 25 + weight.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute z;&lt;BR /&gt;
      z = age * 73 + height.sum + weight.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
                                &lt;BR /&gt;
ods pdf file='fake_vertical2.pdf';&lt;BR /&gt;
  ods escapechar='^';&lt;BR /&gt;
  proc report data=sashelp.class nowd;&lt;BR /&gt;
    title '2) Use line feed between each character';&lt;BR /&gt;
    column ('S^nP^nA^nN^n-^nH^nD^nR' name age height weight sex) x y z;&lt;BR /&gt;
    define name / order 'Name';&lt;BR /&gt;
    define age / order 'Age';&lt;BR /&gt;
    define height / sum;&lt;BR /&gt;
    define weight / sum;&lt;BR /&gt;
    define sex / display;&lt;BR /&gt;
    define x / computed 'X';&lt;BR /&gt;
    define y /computed 'Y';&lt;BR /&gt;
    define z / computed 'Z';&lt;BR /&gt;
    compute x;&lt;BR /&gt;
      x = age * 100 + height.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute y;&lt;BR /&gt;
      y = age * 25 + weight.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
    compute z;&lt;BR /&gt;
      z = age * 73 + height.sum + weight.sum;&lt;BR /&gt;
    endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
ods pdf close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Fri, 05 Jun 2009 21:15:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41187#M5621</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-06-05T21:15:54Z</dc:date>
    </item>
    <item>
      <title>Re: Rotated Text Heading in Proc Report</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41188#M5622</link>
      <description>Thank you both for the response.&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Tim - Your suggestion worked - It took a bit of coding, but I was able to produce the report within reason of the requirements.  I used images for the "rotated row headers" and absolute layout to align the images and have them appear to span several rows.  &lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
Thanks!&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
-John</description>
      <pubDate>Fri, 19 Jun 2009 13:43:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Rotated-Text-Heading-in-Proc-Report/m-p/41188#M5622</guid>
      <dc:creator>jcbell</dc:creator>
      <dc:date>2009-06-19T13:43:26Z</dc:date>
    </item>
  </channel>
</rss>

