<?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 with SubTotals - Column Headings in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-with-SubTotals-Column-Headings/m-p/224793#M14300</link>
    <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you switch to PROC REPORT, you can get output that is closer to what you want. Please see the attached code and screen shot.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;** code;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;data dat;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;length region $15;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;input Region $ Market $ Name $ Volume;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;cards;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;A A1 X 12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;A A2 Y 65&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;B B1 M 34&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;B B2 N 24&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;C C1 P 14&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;C C2 Q 42&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title; footnote;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;options nodate nonumber;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf file='c:\temp\proc_report_example.pdf' style=printer;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc report data=work.dat nowd&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; style(summary)=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; column region market name volume;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define region / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define market / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define name / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define volume / sum f=5.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; break after region / summarize;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; compute after region;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; region = 'Total Market';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; endcomp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** screen shot;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/63i91C06611CD7DA5E3/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="pdf_output_created_PROC_REPORT.png" title="pdf_output_created_PROC_REPORT.png" border="0" /&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 09 Sep 2015 17:25:25 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2015-09-09T17:25:25Z</dc:date>
    <item>
      <title>Proc Tabulate with SubTotals - Column Headings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-with-SubTotals-Column-Headings/m-p/193051#M13090</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757;"&gt;Hi,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757;"&gt;I want the class headings of proc tabulate to appear only once on the top row of the table when the sub-totals are requested for. Currently, they appear right after each of the sub-totals which is not I am expecting for my table. I only need the headings appearing only once in the top row. I tried INDENT=0 option but it removes all the class headings. Any ways to do this?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="color: #575757;"&gt;Below, I give a small piece of code to test.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;data&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; dat;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;input&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; Region $ Market $ Name $ Volume;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;cards&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;A A1 X 12&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;A A2 Y 65&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;B B1 M 34&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;B B2 N 24&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;C C1 P 14&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: #ffffc0; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;C C2 Q 42&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;run&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;PROC&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;TABULATE&lt;/SPAN&gt;&lt;/STRONG&gt; &lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;DATA&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;=WORK.DAT;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;VAR&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; Volume;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; Region / &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;=UNFORMATTED &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;MISSING&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; Market / &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;=UNFORMATTED &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;MISSING&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;CLASS&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt; Name / &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;ORDER&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;=UNFORMATTED &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;MISSING&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: blue; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;TABLE&lt;/SPAN&gt; &lt;/P&gt;&lt;P&gt; &lt;SPAN lang="EN" style="background: white; color: green; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;/* Row Dimension */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;Region*(&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;Market*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;Name &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;ALL={LABEL=&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: purple; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;"Total Market"&lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;}),&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: green; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;/* Column Dimension */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;Volume*&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;Sum &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: green; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;/*Table Options */&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;/ ; &lt;/SPAN&gt;&lt;SPAN lang="EN" style="background: white; color: green; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;/*INDENT=0*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;RUN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;RUN&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;; &lt;/SPAN&gt;&lt;STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: navy; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;QUIT&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Courier New'; mso-ansi-language: EN;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Arial','sans-serif'; mso-ansi-language: EN;"&gt;I need the output as below. Can this be done in Proc tabulate?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Arial','sans-serif'; mso-ansi-language: EN;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Arial','sans-serif'; mso-ansi-language: EN;"&gt;&lt;IMG alt="Image.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/10608_Image.png" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN lang="EN" style="background: white; color: black; font-family: 'Arial','sans-serif'; mso-ansi-language: EN;"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 26 May 2015 15:32:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-with-SubTotals-Column-Headings/m-p/193051#M13090</guid>
      <dc:creator>Shubha</dc:creator>
      <dc:date>2015-05-26T15:32:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate with SubTotals - Column Headings</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-with-SubTotals-Column-Headings/m-p/224793#M14300</link>
      <description>&lt;P&gt;Hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp; If you switch to PROC REPORT, you can get output that is closer to what you want. Please see the attached code and screen shot.&lt;/P&gt;&lt;P&gt;cynthia&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;** code;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;data dat;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;length region $15;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;input Region $ Market $ Name $ Volume;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;cards;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;A A1 X 12&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;A A2 Y 65&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;B B1 M 34&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;B B2 N 24&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;C C1 P 14&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;C C2 Q 42&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;title; footnote;&lt;BR /&gt;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;options nodate nonumber;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf file='c:\temp\proc_report_example.pdf' style=printer;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;proc report data=work.dat nowd&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; style(summary)=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; column region market name volume;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define region / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define market / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define name / order style=Header;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; define volume / sum f=5.1;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; break after region / summarize;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; compute after region;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; region = 'Total Market';&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;&amp;nbsp; endcomp;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;run; &lt;/FONT&gt;&lt;/STRONG&gt;&lt;BR /&gt;&lt;STRONG&gt;&lt;FONT face="courier new,courier"&gt;ods pdf close;&lt;/FONT&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;** screen shot;&lt;/P&gt;&lt;P&gt;&lt;IMG src="https://communities.sas.com/t5/image/serverpage/image-id/63i91C06611CD7DA5E3/image-size/original?v=mpbl-1&amp;amp;px=-1" alt="pdf_output_created_PROC_REPORT.png" title="pdf_output_created_PROC_REPORT.png" border="0" /&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 09 Sep 2015 17:25:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Tabulate-with-SubTotals-Column-Headings/m-p/224793#M14300</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2015-09-09T17:25:25Z</dc:date>
    </item>
  </channel>
</rss>

