<?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: PROC TABULATE and ODS PDF Woes in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181142#M12703</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example can be further simplified to a more conventional use of TABULATE and still show a buggy format in PDF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods pdf file="&amp;amp;sasforum.\Reports\Howles_demo.pdf";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class sex age ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var weight ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (age=" " * (sex=" " all) all)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight*mean=" ";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods pdf close ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Howles_demo.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7250_Howles_demo.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The only way to get rid of the extra cells is to remove the ALL row specifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 01 Sep 2014 03:59:22 GMT</pubDate>
    <dc:creator>PGStats</dc:creator>
    <dc:date>2014-09-01T03:59:22Z</dc:date>
    <item>
      <title>PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181140#M12701</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf file='z:\HLS\demo.pdf' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc tabulate data=sashelp.class order=formatted ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;class sex age ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;var height weight ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table mean='' * f=6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (age='' all) * (sex='' all)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height weight &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; box= 'Averages by Age and Sex' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf close ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and the result&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pdfboxes.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7248_pdfboxes.png" /&gt;&lt;/P&gt;&lt;P&gt;Notice that for each age level after the first (11), there is an extra space-wasting box above the sex levels. Why? Can this be avoided? I experimented with the listing, HTML, and RTF destinations and did &lt;STRONG&gt;not&lt;/STRONG&gt; get this behavior.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There's more. In the course of experimenting, I turned on the row=float option&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf file='z:\HLS\demo.pdf' ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;proc tabulate data=sashelp.class order=formatted ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;class sex age ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;var height weight ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;table mean='' * f=6.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (age='' all) * (sex='' all)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height weight &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; box= 'Averages by Age and Sex' row=float ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;run ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;ods pdf close ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'courier new', courier;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;Output was&lt;/P&gt;&lt;P&gt;&lt;IMG alt="pdf-rowfloat.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/7249_pdf-rowfloat.png" /&gt;&lt;/P&gt;&lt;P&gt;Scary, no?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 31 Aug 2014 20:27:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181140#M12701</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2014-08-31T20:27:13Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181141#M12702</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt; Well, ROW=FLOAT is only useful when you have the statistic in the row dimension, which is not the case for your report, so I am not sure why PDF is acting so funny. I don't understand why you have the MEAN statistic in the page dimension. That doesn't make sense to me anyway. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; Also, I don't understand why you have &lt;/P&gt;&lt;P&gt;(age all) * (sex all) instead of the more common (age *(sex all) all).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; But at any rate, I don't know what you can do to suppress the extra row header space that you are getting in your first code example. However, if you wanted to simplify the table, then my suggestion is that either you work with Tech Support on the TABULATE issue or you could consider switching to PROC REPORT, which will do what you want without needing to worry about the extra row headers.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 03:11:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181141#M12702</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-01T03:11:12Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181142#M12703</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The example can be further simplified to a more conventional use of TABULATE and still show a buggy format in PDF:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods pdf file="&amp;amp;sasforum.\Reports\Howles_demo.pdf";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;proc tabulate data=sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;class sex age ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;var weight ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;table &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (age=" " * (sex=" " all) all)&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight*mean=" ";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;run ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ods pdf close ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Howles_demo.PNG" class="jive-image" src="https://communities.sas.com/legacyfs/online/7250_Howles_demo.PNG" /&gt;&lt;/P&gt;&lt;P&gt;The only way to get rid of the extra cells is to remove the ALL row specifications.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 03:59:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181142#M12703</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-01T03:59:22Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181143#M12704</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ironic thing is the listing destination is working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 14:24:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181143#M12704</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-01T14:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181144#M12705</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am surprised, there seems to be a flurry of these proc tabulate questions this week, not having used it for decades I thought this proc had gone away.&amp;nbsp; Anyways, my suggestion use the out= statement from the proc tabulate if you have to use that, then post process your dataset as you want and proc report the result.&amp;nbsp; Report procedure gives you much more flexibility over the produced output.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 14:31:15 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181144#M12705</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-01T14:31:15Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181145#M12706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; Well, PROC TABULATE certainly has NOT gone away. It is very popular for grouping cross-tabs by classifier variables and EG has a lovely task that allows folks to drag and drop their vars into the rows and columns of the table.. The behavior with PDF is odd and probably a defect that needs to be reported to Tech Support. I do not remember that behavior with ODS PDF in earlier releases of SAS, so the behavior now is odd. At any rate, the OP can do what he wants with PROC REPORT.&lt;BR /&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&amp;nbsp; My only caveat about using OUT= with TABULATE is that the structure of the output table is "flattened" and is no longer cross-tabular in nature, so it's not as simple as doing an OUT= followed by a PROC PRINT. For example, consider this out= compared to the original tabulate compared to using PROC REPORT.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;Cynthia&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** get smaller subset and make sex variable longer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; length sex $11;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; set sashelp.class;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; where age le 13;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf file="c:\temp\tab_out_demo.pdf" style=printer;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc tabulate data=class out=tabout;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '1a) TABULATE output crosstab';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;class sex age ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;var height weight ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;table (age=" " * (sex=" " all) all),&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; height*mean=' ' weight*mean=" "&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /box= 'Averages by Age and Sex' ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run ; &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc print data=tabout;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '1b) output dataset from TABULATE';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=class nowd spanrows&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; style(summary)=Header;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; title '2) Using PROC REPORT';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column ('Averages by Age and Sex' age sex) ("Height" height) ( "Weight" weight) ("Count" n);&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / group ' ' style(column)=Header;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / group ' ' style(column)=Header;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / mean f=6. ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / mean f=6. ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define n / ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute sex;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; if upcase(_break_) = 'AGE' then sex = 'Total';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; else if upcase(_break_) = '_RBREAK_' then sex = 'Grand Total';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; endcomp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after age / summarize suppress;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; rbreak after/ summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods pdf close ;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 01 Sep 2014 16:35:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181145#M12706</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-01T16:35:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181146#M12707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;And another ironic thing is HTML destination also&amp;nbsp; is working .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;ods html file="c:\temp\Howles_demo.htm";
proc tabulate data=sashelp.class;
class sex age ;
var weight ;
table
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; (age=" " * (sex=" " all) all)
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ,
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; weight*mean=" ";
run ;
ods html close ;
&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Xia Keshan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 12:43:30 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181146#M12707</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2014-09-02T12:43:30Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181147#M12708</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; And, because the other destinations "work" and PDF has an issue, to me that is an oddity that needs to be investigated by Tech Support. If they can verify that it is a bug that they can reliably replicate, then they can open a defect with the developers to investigate and if there's a workaround, they'll publish a Tech Support note. If nobody closes the loop with Tech Support, the problem will never get fixed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 19:23:37 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181147#M12708</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-02T19:23:37Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181148#M12709</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;Thanks for the help. I just turned in a Tech Support form.&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;A couple of workarounds occur to me.&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;(1) Get rid of the ALL keywords and use multilevel labels to build totals.&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;(2) Use RTF destination then use MS WORD to print to PDF&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;But my real code is a lot more complicated than the example I presented, so I think either of these workarounds would get messy.&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;Responses to other comments:&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;Why place a stat keyword and its format in the page dimension? Why not? It simplifies the row and/or column expressions.&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;&lt;/P&gt;&lt;P style="color: #000000; font-family: 'Times New Roman'; font-size: medium;"&gt;Why not use PROC REPORT? I'm not sure it has all the features I need for my real&amp;nbsp; project.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 21:36:54 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181148#M12709</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2014-09-02T21:36:54Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181149#M12710</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp; As much as I love PROC TABULATE, (since it was the first real reporting procedure I used other than PROC PRINT), my vote would be to do your report with PROC REPORT. The loss of the big BOX area for TABULATE is easily made up for by the ability to make spanning column headers that can "approximate" the box.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 02 Sep 2014 22:41:19 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181149#M12710</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-02T22:41:19Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181150#M12711</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That was quick; tech support's response arrived this morning.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The essence: It's a known issue. To work around, code the TABLE statement option INDENT=0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once I knew to include INDENT in my search string, I located four pertinent or at least similar SAS notes.&lt;/P&gt;&lt;P class="date"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;2001-11-28&lt;/P&gt;&lt;DIV class="result" style="padding-left: 100px;"&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A href="http://support.sas.com/kb/4/438.html" style="font-weight: bold; font-style: normal; font-size: 13px; font-family: inherit; text-align: left; color: #0066cc;"&gt;4438 - PROC TABULATE creates a blank row in HTML/RTF/PDF output&lt;/A&gt;&lt;SPAN class="result-type" style="color: #7e7e7e; padding-left: 5px;"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;PROC TABULATE may create a blank row in HTML, PDF, and RTF output. This occurs when a CLASS variable is crossed with a statistic in the row dimension and the CLASS variable heading is blanked out. The listing output &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A class="result-links" href="http://support.sas.com/kb/4/438.html" style="font-weight: normal; font-style: italic; font-size: 11px; font-family: inherit; text-align: left; color: #333333;"&gt;http://support.sas.com/kb/4/438.html, &lt;EM&gt;&lt;SPAN class="size" style="font-weight: normal; font-style: italic; font-size: 9px; font-family: inherit; text-align: left;"&gt;28KB&lt;/SPAN&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="date"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;2010-03-17&lt;/P&gt;&lt;DIV class="result" style="padding-left: 100px;"&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A href="http://support.sas.com/kb/38/296.html" style="font-weight: bold; font-style: normal; font-size: 13px; font-family: inherit; text-align: left; color: #0066cc;"&gt;38296 - First row of a PROC TABULATE table is repeated at the top of each PDF page&lt;/A&gt;&lt;SPAN class="result-type" style="color: #7e7e7e; padding-left: 5px;"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;The first row of a PROC TABULATE table is repeated at the top of each PDF page.&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A class="result-links" href="http://support.sas.com/kb/38/296.html" style="font-weight: normal; font-style: italic; font-size: 11px; font-family: inherit; text-align: left; color: #333333;"&gt;http://support.sas.com/kb/38/296.html, &lt;EM&gt;&lt;SPAN class="size" style="font-weight: normal; font-style: italic; font-size: 9px; font-family: inherit; text-align: left;"&gt;27KB&lt;/SPAN&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="date"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;2006-04-25&lt;/P&gt;&lt;DIV class="result" style="padding-left: 100px;"&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A href="http://support.sas.com/kb/16/880.html" style="font-weight: bold; font-style: normal; font-size: 13px; font-family: inherit; text-align: left; color: #0066cc;"&gt;16880 - TABULATE output may shift in non-LISTING destinations&lt;/A&gt;&lt;SPAN class="result-type" style="color: #7e7e7e; padding-left: 5px;"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;If an analysis variable comes before a CLASS variable in a TABLE crossing, and a format that applies to the table cells is crossed with the CLASS variable, the output created in HTML, PDF or RTF may show a shifted row. &lt;STRONG&gt;...&lt;/STRONG&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A class="result-links" href="http://support.sas.com/kb/16/880.html" style="font-weight: normal; font-style: italic; font-size: 11px; font-family: inherit; text-align: left; color: #333333;"&gt;http://support.sas.com/kb/16/880.html, &lt;EM&gt;&lt;SPAN class="size" style="font-weight: normal; font-style: italic; font-size: 9px; font-family: inherit; text-align: left;"&gt;29KB&lt;/SPAN&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;P class="date"&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;2009-04-29&lt;/P&gt;&lt;DIV class="result" style="padding-left: 100px;"&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A href="http://support.sas.com/kb/35/204.html" style="font-weight: bold; font-style: normal; font-size: 13px; font-family: inherit; text-align: left; color: #0066cc;"&gt;35204 - PROC TABULATE might create a blank row in the ODS PRINTER (PCL/PDF/PS) output destinations&lt;/A&gt;&lt;SPAN class="result-type" style="color: #7e7e7e; padding-left: 5px;"&gt;- Problem Note&lt;/SPAN&gt;&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;PROC TABULATE might create a blank row in the ODS PRINTER (PCL/PDF/PS) output destinations when multiple CLASS variables are crossed within the row dimension and their labels are blank.&lt;/P&gt;&lt;P style="font-weight: normal; font-style: normal; font-size: 13px; font-family: inherit; text-align: left;"&gt;&lt;A class="result-links" href="http://support.sas.com/kb/35/204.html" style="font-weight: normal; font-style: italic; font-size: 11px; font-family: inherit; text-align: left; color: #333333;"&gt;http://support.sas.com/kb/35/204.html, &lt;EM&gt;&lt;SPAN class="size" style="font-weight: normal; font-style: italic; font-size: 9px; font-family: inherit; text-align: left;"&gt;28KB&lt;/SPAN&gt;&lt;/EM&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:43:33 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181150#M12711</guid>
      <dc:creator>Howles</dc:creator>
      <dc:date>2014-09-03T18:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: PROC TABULATE and ODS PDF Woes</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181151#M12712</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Great work Howles. This is so old it should be called a feature, not a bug! :smileylaugh:&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 03 Sep 2014 18:55:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/PROC-TABULATE-and-ODS-PDF-Woes/m-p/181151#M12712</guid>
      <dc:creator>PGStats</dc:creator>
      <dc:date>2014-09-03T18:55:06Z</dc:date>
    </item>
  </channel>
</rss>

