<?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 to Proc Report Conversion Subtotal dol dul in Developers</title>
    <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217793#M4718</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc report data=sashelp.orsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column product_line product_category quantity, year;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_line / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_category / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define year / across ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define quantity / sum ' ' FORMAT=comma8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after product_line /&amp;nbsp; summarize style={background=lightblue font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after product_line;&lt;/P&gt;&lt;P&gt;&amp;nbsp; product_line = 'Sub Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after / summarize style={background=yellow font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after;&lt;/P&gt;&lt;P&gt;&amp;nbsp; product_line = 'Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9972_total.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 09 Apr 2015 17:17:11 GMT</pubDate>
    <dc:creator>DavidPhillips2</dc:creator>
    <dc:date>2015-04-09T17:17:11Z</dc:date>
    <item>
      <title>Proc Tabulate to Proc Report Conversion Subtotal dol dul</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217791#M4716</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: black; background: white;"&gt;In SAS 9.2 I’m converting over some proc tabulate statements to proc report.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: black; background: white;"&gt;I’m having a hard time converting over tabulate statements with a total and subtotal.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: black; background: white;"&gt;For some reason statements like dol and dul are not working for me.&amp;nbsp; Any advice on converting this to proc report or why dol and dul are not working for me?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROC TABULATE missing&lt;/P&gt;&lt;P&gt;&amp;nbsp; data=sashelp.orsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; class year product_line product_category;&lt;/P&gt;&lt;P&gt;&amp;nbsp; var quantity;&lt;/P&gt;&lt;P&gt;&amp;nbsp; TABLES product_line=' ' * (product_category=' ' all= 'Sub-total') all='Total',&lt;/P&gt;&lt;P&gt;&amp;nbsp; year=' '*quantity=' '*sum=' '&amp;nbsp; /row=float;&lt;/P&gt;&lt;P&gt;&amp;nbsp; KEYLABEL n=' ' Sum= ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="top.png" class="jive-image-thumbnail jive-image jiveImage" src="https://communities.sas.com/legacyfs/online/9957_top.png" style="font-size: 13.3333330154419px; color: #000000; font-family: Arial, sans-serif;" width="450" /&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 13.3333330154419px; font-family: Arial, sans-serif; color: black; background: white;"&gt;The closest I have is:&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt; color: black; font-family: Arial, sans-serif; background-color: white;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;proc report data=sashelp.orsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column product_line product_category quantity, year;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_line / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_category / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define year / across ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define quantity / sum ' ' FORMAT=comma8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after product_line / dol dul summarize style={background=lightblue font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after / ul summarize style={background=yellow font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P style="font-size: 13.3333330154419px;"&gt;&lt;/P&gt;&lt;P style="margin-bottom: .0001pt;"&gt;&lt;SPAN style="font-family: 'Arial',sans-serif; color: black; background: white;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;IMG alt="bottom.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9958_bottom.png" width="450" /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 20:08:10 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217791#M4716</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-04-08T20:08:10Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate to Proc Report Conversion Subtotal dol dul</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217792#M4717</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DOL and DUL: From the online documentation:&lt;/P&gt;&lt;PRE __jive_macro_name="quote" class="jive_text_macro jive_macro_quote"&gt;
&lt;P&gt;This option has no effect on ODS destinations other than traditional SAS &lt;/P&gt;
&lt;P&gt;monospace output&lt;/P&gt;
&lt;/PRE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 08 Apr 2015 21:53:26 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217792#M4717</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2015-04-08T21:53:26Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate to Proc Report Conversion Subtotal dol dul</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217793#M4718</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;proc report data=sashelp.orsales;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column product_line product_category quantity, year;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_line / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define product_category / group;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define year / across ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define quantity / sum ' ' FORMAT=comma8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after product_line /&amp;nbsp; summarize style={background=lightblue font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after product_line;&lt;/P&gt;&lt;P&gt;&amp;nbsp; product_line = 'Sub Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after / summarize style={background=yellow font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after;&lt;/P&gt;&lt;P&gt;&amp;nbsp; product_line = 'Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="total.png" class="jive-image-thumbnail jive-image" src="https://communities.sas.com/legacyfs/online/9972_total.png" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 09 Apr 2015 17:17:11 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217793#M4718</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-04-09T17:17:11Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Tabulate to Proc Report Conversion Subtotal dol dul</title>
      <link>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217794#M4719</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;SPAN style="font-size: 11.0pt; font-family: 'Arial',sans-serif; color: black; background: white;"&gt;I ran into a bit of complication when I tried to use formats.&amp;nbsp; The catch is I have all of my data stored as numbers.&amp;nbsp; Then I use format blocks to format to text.&amp;nbsp; The total line does not show up using the rbreak command.&amp;nbsp; When I display text without format it displays ok. The general concept is below with macro variables.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data=enrollment;&lt;/P&gt;&lt;P&gt;&amp;nbsp; column &amp;amp;reportTy1 &amp;amp;reportTy2 &amp;amp;measureTy, academic_period_desc;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define &amp;amp;reportTy1 / group ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define &amp;amp;reportTy2 / group ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define academic_period_desc / across ' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp; define &amp;amp;measureTy / sum ' ' FORMAT=comma8.;&lt;/P&gt;&lt;P&gt;&amp;nbsp; break after &amp;amp;reportTy1 /&amp;nbsp; summarize style={background=lightblue font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after &amp;amp;reportTy1;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %IF &amp;amp;reportTy1FormatFlag = Yes %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;reportTy1 = 98;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %else %do; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;reportTy1 = 'Subtotal';&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after / summarize style={background=yellow font_weight=bold };&lt;/P&gt;&lt;P&gt;&amp;nbsp; compute after;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %IF &amp;amp;reportTy1FormatFlag = Yes %then %do;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;reportTy1 = 99;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; %else %do; &lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;reportTy1 = 'Total';&lt;/P&gt;&lt;P&gt;&amp;nbsp; %end;&lt;/P&gt;&lt;P&gt;&amp;nbsp; endcomp;&lt;/P&gt;&lt;P&gt;&amp;nbsp; COMPUTE &amp;amp;reportTy1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF &amp;amp;reportTy1 NE . %THEN &amp;amp;reportTy1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %ELSE &amp;amp;reportTy1=' ';&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; %IF _break_='_RBREAK_' %THEN&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;amp;reportTy1=99;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ENDCOMP;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &amp;amp;formatOrderClause;&lt;/P&gt;&lt;P&gt;&amp;nbsp; where four_digit_year = "&amp;amp;maxPeriod";&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="missing total.png" class="jive-image" src="https://communities.sas.com/legacyfs/online/10026_missing total.png" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 13 Apr 2015 20:33:39 GMT</pubDate>
      <guid>https://communities.sas.com/t5/Developers/Proc-Tabulate-to-Proc-Report-Conversion-Subtotal-dol-dul/m-p/217794#M4719</guid>
      <dc:creator>DavidPhillips2</dc:creator>
      <dc:date>2015-04-13T20:33:39Z</dc:date>
    </item>
  </channel>
</rss>

