<?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: vertical text alignment in proc tabulate in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299376#M63115</link>
    <description>Can't make that work either. I don't think it would do what I want even if&lt;BR /&gt;it did work, it would apply to the entire table. I only want the values for&lt;BR /&gt;one of the three class columns to have vertical text. I want all the&lt;BR /&gt;headers to be normal and the other two class columns to have normal headers&lt;BR /&gt;and values. This is done in proc tabulate by using a classlev statement&lt;BR /&gt;and assigning the formatting there. Maybe this just can't be done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
    <pubDate>Mon, 19 Sep 2016 19:44:56 GMT</pubDate>
    <dc:creator>BillB007</dc:creator>
    <dc:date>2016-09-19T19:44:56Z</dc:date>
    <item>
      <title>vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298375#M62741</link>
      <description>&lt;P&gt;&lt;BR /&gt;Below is my proc tabulate code. &amp;nbsp;I'd like the first variable in the table, the page variable 'cohort', to print with vertical alignment to save space. &amp;nbsp; Can someone tell me how to do it? &amp;nbsp;I've searched far and wide and have not found an answer yet. &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Bill&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;**************** &amp;nbsp; code &amp;nbsp;********************&lt;/P&gt;&lt;P&gt;proc tabulate data =&amp;amp;input f=4.0 S=[just=c cellwidth=75];&amp;nbsp;&lt;/P&gt;&lt;P&gt;var Col1;&lt;BR /&gt;class cohort criterion instrument /ORDER=DATA ;&lt;BR /&gt;class _name_ ;&lt;BR /&gt;table cohort*instrument*criterion all={label='Total' s=[just=R background=lightblue]}*{s=[just=C background=lightblue]} ,(_name_='Level' ALL)*Col1=" "*(sum="N"*(f=cnum.) ROWPCTSUM="%"*f=mypct. ) /box=_PAGE_;&amp;nbsp;&lt;BR /&gt;BY instrument NOTSORTED;&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 16:54:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298375#M62741</guid>
      <dc:creator>BillB007</dc:creator>
      <dc:date>2016-09-14T16:54:17Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298452#M62771</link>
      <description>&lt;P&gt;&lt;A href="http://www2.sas.com/proceedings/forum2007/095-2007.pdf" target="_self"&gt;This paper&lt;/A&gt; suggests using VJUST. From &lt;A href="https://v8doc.sas.com/sashtml/proc/z0060410.htm#z0591394" target="_self"&gt;the documentation&lt;/A&gt;, looks like you can specify VJUST=TOP, BOTTOM, or MIDDLE.&lt;/P&gt;</description>
      <pubDate>Wed, 14 Sep 2016 21:41:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298452#M62771</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-09-14T21:41:03Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298810#M62895</link>
      <description>&lt;P&gt;I actually looked at that paper already and never noticed that line. &amp;nbsp; It was right in front of my face! &amp;nbsp; Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 15 Sep 2016 21:58:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/298810#M62895</guid>
      <dc:creator>BillB007</dc:creator>
      <dc:date>2016-09-15T21:58:46Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299350#M63097</link>
      <description>&lt;P&gt;Update after actually trying the suggestion. &amp;nbsp;Specifying Vjust does't work the way I want. &amp;nbsp;It locates the horizontal text at the top, center or bottom of the box. &amp;nbsp;I want to rotate the text so the text is printed vertically. &amp;nbsp; &amp;nbsp; I'm still stuck! &amp;nbsp; &amp;nbsp;Any other ideas?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Text should be like this:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;A&lt;/P&gt;&lt;P&gt;n&lt;/P&gt;&lt;P&gt;s&lt;/P&gt;&lt;P&gt;w&lt;/P&gt;&lt;P&gt;e&lt;/P&gt;&lt;P&gt;r&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;and not like this. &amp;nbsp; Answer&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:11:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299350#M63097</guid>
      <dc:creator>BillB007</dc:creator>
      <dc:date>2016-09-19T18:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299353#M63098</link>
      <description>&lt;P&gt;Ah, so you want rotated text. Try &lt;A href="https://support.sas.com/rnd/base/ods/odsmarkup/excelxp_demo.html#rotate" target="_self"&gt;this solution&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:20:58 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299353#M63098</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-09-19T18:20:58Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299356#M63099</link>
      <description>&lt;P&gt;Thanks. &amp;nbsp;Can't get that to work, it gives an error message, maybe because I'm using this for a PDF output and that article is for an Excel worksheet? &amp;nbsp;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I just created the style using this code from the article:&lt;/P&gt;&lt;P&gt;------------------ &amp;nbsp; code from the suggested article to create a rotated text style -----------------------&lt;/P&gt;&lt;P&gt;proc template;&lt;BR /&gt;define style styles.mystyle;&lt;BR /&gt;parent=styles.default;&lt;BR /&gt;style vertical_header from header /&lt;BR /&gt;tagattr = 'rotate:90'&lt;BR /&gt;;&lt;BR /&gt;end;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;------------------ &amp;nbsp; end of code from the suggested article to create a rotated text style -----------------------&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Then I inserted that style where I want it, in the values for the cohort column. &amp;nbsp; Gives an error. &amp;nbsp; Not clear that proc tabulate will allow me to use styles that I create, or did I skip a step??&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;------------------------ &amp;nbsp; my proc tabulate code to print a pdf file &amp;nbsp;--------------------------------&lt;/P&gt;&lt;P&gt;proc tabulate data =&amp;amp;input f=4.0 S=[just=c cellwidth=70];&amp;nbsp;&lt;BR /&gt;var Col1;&lt;BR /&gt;class cohort criterion instrument /ORDER=DATA ;&lt;BR /&gt;class _name_ ;&lt;BR /&gt;classlev cohort /style=[vertical_header];&amp;nbsp;&lt;BR /&gt;table cohort*instrument*criterion all={label='Total' s=[just=R background=lightblue]}*{s=[just=C background=lightblue]} ,(_name_='Level' ALL)*Col1=" "*(sum="N"*(f=cnum.) ROWPCTSUM="%"*f=mypct. ) /box=_PAGE_;&amp;nbsp;&lt;BR /&gt;BY instrument NOTSORTED;&amp;nbsp;&lt;BR /&gt;run;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:53:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299356#M63099</guid>
      <dc:creator>BillB007</dc:creator>
      <dc:date>2016-09-19T18:53:22Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299357#M63100</link>
      <description>&lt;P&gt;Try including it in the PROC TABULATE call instead:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;proc tabulate data=tabhow style=[vertical_header];&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;via &lt;A href="http://www2.sas.com/proceedings/sugi29/085-29.pdf" target="_self"&gt;this paper&lt;/A&gt;.&lt;/P&gt;</description>
      <pubDate>Mon, 19 Sep 2016 18:57:09 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299357#M63100</guid>
      <dc:creator>paulkaefer</dc:creator>
      <dc:date>2016-09-19T18:57:09Z</dc:date>
    </item>
    <item>
      <title>Re: vertical text alignment in proc tabulate</title>
      <link>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299376#M63115</link>
      <description>Can't make that work either. I don't think it would do what I want even if&lt;BR /&gt;it did work, it would apply to the entire table. I only want the values for&lt;BR /&gt;one of the three class columns to have vertical text. I want all the&lt;BR /&gt;headers to be normal and the other two class columns to have normal headers&lt;BR /&gt;and values. This is done in proc tabulate by using a classlev statement&lt;BR /&gt;and assigning the formatting there. Maybe this just can't be done.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;##- Please type your reply above this line. Simple formatting, no&lt;BR /&gt;attachments. -##</description>
      <pubDate>Mon, 19 Sep 2016 19:44:56 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/vertical-text-alignment-in-proc-tabulate/m-p/299376#M63115</guid>
      <dc:creator>BillB007</dc:creator>
      <dc:date>2016-09-19T19:44:56Z</dc:date>
    </item>
  </channel>
</rss>

