<?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 do I add a caption with proc tabulate and ODS PDF in New SAS User</title>
    <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525241#M4918</link>
    <description>Thanks! That works.</description>
    <pubDate>Mon, 07 Jan 2019 21:48:13 GMT</pubDate>
    <dc:creator>lstockman</dc:creator>
    <dc:date>2019-01-07T21:48:13Z</dc:date>
    <item>
      <title>How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525223#M4907</link>
      <description>&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I'd like to add a caption under the table that results from this statement. A footnote is too far down the page. Thanks for any suggestions!&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;ODS PDF file="&amp;amp;savepathrep.\Table_1994_2017_&amp;amp;val._&amp;amp;filedate..pdf" 
STYLE=styles.analysis;

proc tabulate data=have missing classdata=dummy.dummyyr;
where lhj="&amp;amp;val";
class count vitalstat year;
table year*f=comma8.0 all*f=comma8.0, count*f=comma8.0 vitalstat*f=comma8.0 /misstext='0' printmiss box="&amp;amp;val";
label 	year='Year of Report'
		count='Confirmed Cases'
		vitalstat='Vital Status';
keylabel all='Total 1994-2017'; 
Title 'Title of Table Here';
run;

ODS PDF close;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Mon, 07 Jan 2019 20:54:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525223#M4907</guid>
      <dc:creator>lstockman</dc:creator>
      <dc:date>2019-01-07T20:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525229#M4911</link>
      <description>&lt;P&gt;I think that you want to use the Style=[Posttext=''] in the table options&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;PRE&gt;proc tabulate data=have missing classdata=dummy.dummyyr;
where lhj="&amp;amp;val";
class count vitalstat year;
table year*f=comma8.0 all*f=comma8.0, 
      count*f=comma8.0 vitalstat*f=comma8.0 
      /misstext='0' printmiss box="&amp;amp;val"
       style=[Posttext='Title of Table Here']
;
label 	year='Year of Report'
		count='Confirmed Cases'
		vitalstat='Vital Status';
keylabel all='Total 1994-2017'; 
run;
&lt;/PRE&gt;
&lt;P&gt;Each table in Proc Tabulate can have both PRETEXT and POSTTEXT. I find the PRETEXT handy to place "titles" immediately above a table when generating multiple tables. The weakness is that I haven't been able, yet, to have as much appearance control as a TITLE statement offers.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:25:47 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525229#M4911</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2019-01-07T21:25:47Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525231#M4913</link>
      <description>&lt;P&gt;Hi:&lt;BR /&gt; You could try ODS PDF TEXT but you'll also have to use STARTPAGE=NO option in your ODS PDF statement. or you could switch to PROC REPORT and do a COMPUTE block. &lt;BR /&gt;&lt;BR /&gt; With ODS TEXT, you have to apply style overrides to alter the formatting.&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="ODS_PDF_Caption.png" style="width: 600px;"&gt;&lt;img src="https://communities.sas.com/t5/image/serverpage/image-id/26076i42195685822AC89C/image-size/large?v=v2&amp;amp;px=999" role="button" title="ODS_PDF_Caption.png" alt="ODS_PDF_Caption.png" /&gt;&lt;/span&gt;&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;I wouldn't use the ANALYSIS style because the background of the whole page is sort of creamy off-white color -- but that's a color preference. Otherwise, something like the above example should work. Since you didn't provide any data, I just used SASHELP.CLASS.&lt;/P&gt;
&lt;P&gt;&lt;BR /&gt;Cynthia&lt;/P&gt;</description>
      <pubDate>Mon, 07 Jan 2019 21:30:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525231#M4913</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2019-01-07T21:30:51Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525241#M4918</link>
      <description>Thanks! That works.</description>
      <pubDate>Mon, 07 Jan 2019 21:48:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525241#M4918</guid>
      <dc:creator>lstockman</dc:creator>
      <dc:date>2019-01-07T21:48:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525243#M4920</link>
      <description>Thanks! This works too but for some reason the table appears twice before it adds the caption at the bottom. I'll look into it a bit.</description>
      <pubDate>Mon, 07 Jan 2019 21:49:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525243#M4920</guid>
      <dc:creator>lstockman</dc:creator>
      <dc:date>2019-01-07T21:49:05Z</dc:date>
    </item>
    <item>
      <title>Re: How do I add a caption with proc tabulate and ODS PDF</title>
      <link>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525293#M4932</link>
      <description>fixed it - great solution, thanks.</description>
      <pubDate>Tue, 08 Jan 2019 00:14:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/New-SAS-User/How-do-I-add-a-caption-with-proc-tabulate-and-ODS-PDF/m-p/525293#M4932</guid>
      <dc:creator>lstockman</dc:creator>
      <dc:date>2019-01-08T00:14:36Z</dc:date>
    </item>
  </channel>
</rss>

