<?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: Using extra break lines to create grand totals and subtotals in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155935#M11820</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did we not cover this in: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/61301"&gt;https://communities.sas.com/thread/61301&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 23 Sep 2014 15:25:12 GMT</pubDate>
    <dc:creator>RW9</dc:creator>
    <dc:date>2014-09-23T15:25:12Z</dc:date>
    <item>
      <title>Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155934#M11819</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem creating subtotals.&amp;nbsp; I am outputting using proc report to excel.&amp;nbsp;&amp;nbsp; So I want the totals in the appropriate column (don't want to use the line command).&amp;nbsp; I have the following code and output.&amp;nbsp; I also listed at the very bottom what I want as the ultimate output.&amp;nbsp; I am at a loss how to use another set of "fake" breaks to create a subtotal by market.&amp;nbsp; Can anyone help?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Data;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;t b Greater Philadelphia Touchpoint 2&lt;/P&gt;&lt;P&gt;t b New England South Touchpoint 7&lt;/P&gt;&lt;P&gt;t b New York Branch Intranet 0&lt;/P&gt;&lt;P&gt;t b New York Touchpoint 0&lt;/P&gt;&lt;P&gt;t b Ohio Touchpoint 0&lt;/P&gt;&lt;P&gt;t b Western/Central Pennsylvania Touchpoint 1&lt;/P&gt;&lt;P&gt;t b _Incomplete Information Branch Intranet 1&lt;/P&gt;&lt;P&gt;t b _Incomplete Information Touchpoint 2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Code:&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;listing&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ODS&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; tagsets.excelxp &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;file&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;"\\wapprib00001040\Prod\output\excel\TESTRPT_sub.xls"&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;style&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = Barrettsblue &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; options (&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; sheet_label = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;''&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; wraptext=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'yes'&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;&amp;nbsp;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*absolute_column_width='20'*/&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;);&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/**************************************************************&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;Output Market Trend&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;****************************************************************/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ods&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; tagsets.excelxp&amp;nbsp;&amp;nbsp; options(sheet_name=&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Market Trend'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; );&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;proc&lt;/STRONG&gt; &lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;report&lt;/STRONG&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;data&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = market_trend_tmp1&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;headskip&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;split&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'*'&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;missing&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;wrap&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;column&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkt brkb&amp;nbsp; market_name channel_summary&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; total_accts_m1 total_accts_m1=SumAccounts1 ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; market_name / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;group&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Market Name'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; channel_summary / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;group&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Channel'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkt / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkb / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;group&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; total_accts_m1 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Accounts'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;define&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; SumAccounts1 / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;sum&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp; &lt;/SPAN&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;SPAN style="font-family: 'Courier New'; background: white; color: green; font-size: 10pt;"&gt;/*break after market_name / summarize;*/&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;break&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;after&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkt / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;summarize&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;break&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;after&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkb / &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;summarize&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;compute&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; SumAccounts1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; channel_summary = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Touchpoint'&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; TPTSumAccounts1 + SumAccounts1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;else&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;if&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; channel_summary = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Branch Intranet'&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;then&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; BRISumAccounts1 + SumAccounts1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;compute&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;after&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; total_accts_m1.sum = TPTSumAccounts1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; channel_summary = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Number of Touchpoint'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;compute&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;after&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; brkb;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; total_accts_m1.sum = BRISumAccounts1;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;&amp;nbsp; channel_summary = &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: purple; font-size: 10pt;"&gt;'Number of Branch Intranet'&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;endcomp&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: navy; font-size: 10pt; background: white; font-family: 'Courier New';"&gt;run&lt;/STRONG&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; ;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ods&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt; tagsets.excelxp &lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;close&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;ods&lt;/SPAN&gt; &lt;SPAN style="font-family: 'Courier New'; background: white; color: blue; font-size: 10pt;"&gt;listing&lt;/SPAN&gt;&lt;SPAN style="font-family: 'Courier New'; background: white; color: black; font-size: 10pt;"&gt;;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Output Have from above:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="888"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl64" height="21" width="48"&gt;brkt&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="48"&gt;brkb&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="336"&gt;Market Name&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="180"&gt;Channel&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="108"&gt;Accounts&lt;/TD&gt;&lt;TD class="xl64" style="border-left: medium none;" width="168"&gt;total_accts_m1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl65" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="48"&gt;b&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;Greater Philadelphia&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;New England South&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;7&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;New York&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Branch Intranet&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;Ohio&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;Western/Central Pennsylvania&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="336"&gt;_Incomplete Information&lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Branch Intranet&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl65" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="108"&gt;2&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none; border-top: medium none;" width="168"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="48"&gt;b&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="180"&gt;Number of Branc&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="168"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl68" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="180"&gt;Number of Touch&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="108"&gt;12&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="168"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;P&gt;&lt;BR /&gt;I want the below output:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;TABLE border="0" cellpadding="0" cellspacing="0" width="888"&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD class="xl66" height="21" width="48"&gt;brkt&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="48"&gt;brkb&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="336"&gt;Market Name&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="180"&gt;Channel&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="108"&gt;Accounts&lt;/TD&gt;&lt;TD class="xl66" style="border-left: medium none;" width="168"&gt;total_accts_m1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt;b&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;Greater Philadelphia&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl67" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;New England South&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;7&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;7&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;7&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;New York&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Branch Intranet&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;Ohio&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;0&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;Western/Central Pennsylvania&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="336"&gt;_Incomplete Information&lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Branch Intranet&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;1&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="336"&gt; &lt;/TD&gt;&lt;TD class="xl67" style="border-left: medium none; border-top: medium none;" width="180"&gt;Touchpoint&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="108"&gt;2&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt;2&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Branc&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;0&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl69" height="24" style="border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl69" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl75" style="border-left: medium none; border-top: medium none;" width="336"&gt;Need subtotals by Market (broken out) ---------&amp;gt;&lt;/TD&gt;&lt;TD class="xl76" style="border-left: medium none; border-top: medium none;" width="180"&gt;Subtotal of Touch&lt;/TD&gt;&lt;TD class="xl77" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl68" style="border-left: medium none; border-top: medium none;" width="168"&gt; &lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl70" style="border-left: medium none; border-top: medium none;" width="48"&gt;b&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none; border-top: medium none;" width="336"&gt;I have this working&lt;/TD&gt;&lt;TD class="xl73" style="border-left: medium none; border-top: medium none;" width="180"&gt;Grand Total of Branc&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none; border-top: medium none;" width="108"&gt;1&lt;/TD&gt;&lt;TD class="xl72" style="border-left: medium none; border-top: medium none;" width="168"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;TR&gt;&lt;TD class="xl70" height="24" style="border-top: medium none;" width="48"&gt;t&lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none; border-top: medium none;" width="48"&gt; &lt;/TD&gt;&lt;TD class="xl71" style="border-left: medium none; border-top: medium none;" width="336"&gt;I have this working&lt;/TD&gt;&lt;TD class="xl73" style="border-left: medium none; border-top: medium none;" width="180"&gt;Grand Total of Touch&lt;/TD&gt;&lt;TD class="xl74" style="border-left: medium none; border-top: medium none;" width="108"&gt;12&lt;/TD&gt;&lt;TD class="xl72" style="border-left: medium none; border-top: medium none;" width="168"&gt;13&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:21:44 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155934#M11819</guid>
      <dc:creator>Laurie</dc:creator>
      <dc:date>2014-09-23T15:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155935#M11820</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Did we not cover this in: &lt;A _jive_internal="true" href="https://communities.sas.com/thread/61301"&gt;https://communities.sas.com/thread/61301&lt;/A&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:25:12 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155935#M11820</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-23T15:25:12Z</dc:date>
    </item>
    <item>
      <title>Re: Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155936#M11821</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Yes thanks for your reply!&amp;nbsp;&amp;nbsp; I have too many additional statistics to do a union.&amp;nbsp; I did get it to work as stated above for the grand totals without doing a union.&amp;nbsp; But now need subtotals as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is only a dumbed down example of the actual report code.&amp;nbsp; I have 12 months of data and each month has 5 statistics to sum up.&amp;nbsp; Also I am using macros to output it since the number of months to display is dynamic (rolling 12 months and accumulating months from report inception i.e. today I might have 1 month of data to display and 3 months from now I have 3 months to display).&amp;nbsp;&amp;nbsp; It would be easier in a proc report to do the calculations if possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Maybe there is a way to add more dummy break lines to get the subtotals by market to work?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 15:40:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155936#M11821</guid>
      <dc:creator>Laurie</dc:creator>
      <dc:date>2014-09-23T15:40:03Z</dc:date>
    </item>
    <item>
      <title>Re: Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155937#M11822</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You do not need to union, do your sums with a by group:&lt;/P&gt;&lt;P&gt;proc sql;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; insert into DATA&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; select&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MONTH,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(STAT1) as STAT1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; SUM(STAT2) as STAT2&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; group by MONTH;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are many ways to get totals/statistics and put them into datasets.&amp;nbsp; With the by grouping you also don't need to know the actual groups up front.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 18:16:14 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155937#M11822</guid>
      <dc:creator>RW9</dc:creator>
      <dc:date>2014-09-23T18:16:14Z</dc:date>
    </item>
    <item>
      <title>Re: Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155938#M11823</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks again for your answer.&amp;nbsp; I have way too many variables to do the calcs in sql.&amp;nbsp; I am still searching for another way to get subtotals.&amp;nbsp; I have the grand totals working so I was hoping for some help on the subtotals.&amp;nbsp; If there is a way in proc report I would welcome any thoughts.&amp;nbsp; Thanks again I appreciate the reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 18:39:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155938#M11823</guid>
      <dc:creator>Laurie</dc:creator>
      <dc:date>2014-09-23T18:39:55Z</dc:date>
    </item>
    <item>
      <title>Re: Using extra break lines to create grand totals and subtotals</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155939#M11824</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; You can make extra break lines with PROC REPORT. But you will need a "helper" variable for every break line. This paper &lt;A href="http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf" title="http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf"&gt;http://support.sas.com/rnd/papers/sgf07/sgf2007-report.pdf&lt;/A&gt; has an example starting on page 7. I have some sample code that uses SASHELP.CLASS, so it should be easy for you to run and see the difference between program #1, #2 and #3 (where all the "helper" variables are hidden. It should be easy to "macro-ize" code like this because what you add in your "extra" compute block for your helper variables should fall into some pattern that lends itself to generation with a macro program.&lt;/P&gt;&lt;P&gt;&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;** make some fake data with SASHELP.CLASS;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;** all helper variables are called "xline";&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;data helper;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; length sex name $25;&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; xline1 = 'F_mean';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; xline2 = 'M_mean';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; xline3 = 'height';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; xline4 = 'weight';&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;&amp;nbsp; ** make a few "sum" variables which will be 0 or 1 based on condition;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; if height &amp;gt; 66 then tall=1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; else tall = 0;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; if weight &amp;gt; 125 then heavy = 1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; else heavy = 0;&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 listing close;&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;options missing = ' ';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html file='c:\temp\use_helper_var.html';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;proc report data=helper nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '1) show all helper variables';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'notice how all extra summary lines show same statistics';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column xline1 xline2 xline3 xline4 tall heavy sex name age height weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline1 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline2 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline3 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline4 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define tall / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define heavy / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define name / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / display;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline1 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline2 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline3 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline4 / summarize;&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;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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=helper nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '2) reassign totals from helper variables tall and heavy';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title2 'and grab female and male averages to use on extra break lines';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column xline1 xline2 xline3 xline4 tall heavy sex name age height weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline1 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline2 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline3 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline4 / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define tall / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define heavy / sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define name / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / display;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before 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; ** grab and hold stats for each gender in temp variables;&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 sex = 'F' then do; &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;&amp;nbsp; ht_F_mean = round(height.mean,.01); &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;&amp;nbsp; wt_F_mean = round(weight.mean,.01); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; else if sex = 'M' then do;&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;&amp;nbsp; ht_M_mean = round(height.mean,.01);&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;&amp;nbsp; wt_M_mean = round(weight.mean,.01); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&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 xline1 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline2 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline3 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline4 / summarize;&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;&amp;nbsp; compute after xline1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sex = 'Female Averages';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; height.mean = ht_F_mean;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; weight.mean = wt_F_mean;&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; compute after xline2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sex = 'Male Averages';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; height.mean = ht_M_mean;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; weight.mean = wt_M_mean;&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; compute after xline3;&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; sex = 'Students over 66" tall';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; height.mean = tall.sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; call define('height.mean','format','8.0');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; weight.mean = .;&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; compute after xline4;&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; sex = 'Students over 125 lbs';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; weight.mean = heavy.sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; call define('weight.mean','format','8.0');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; height.mean = .;&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; compute after;&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; sex = 'Overall Averages';&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;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&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=helper nowd;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;title '3) Using NOPRINT with same code';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; column xline1 xline2 xline3 xline4 tall heavy sex name age height weight;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline1 / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline2 / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline3 / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define xline4 / order noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define tall / sum noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define heavy / sum noprint;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define sex / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define name / order;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define age / display;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define height / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; define weight / mean f=8.2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; compute before 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; ** grab and hold stats for each gender in temp variables;&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 sex = 'F' then do; &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;&amp;nbsp; ht_F_mean = round(height.mean,.01); &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;&amp;nbsp; wt_F_mean = round(weight.mean,.01); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; else if sex = 'M' then do;&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;&amp;nbsp; ht_M_mean = round(height.mean,.01);&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;&amp;nbsp; wt_M_mean = round(weight.mean,.01); &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; end;&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 xline1 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline2 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline3 / summarize;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; break after xline4 / summarize;&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;&amp;nbsp; compute after xline1;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sex = 'Female Averages';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; height.mean = ht_F_mean;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; weight.mean = wt_F_mean;&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; compute after xline2;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; sex = 'Male Averages';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; height.mean = ht_M_mean;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt; weight.mean = wt_M_mean;&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; compute after xline3;&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; sex = 'Students over 66" tall';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; height.mean = tall.sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; call define('height.mean','format','8.0');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; weight.mean = .;&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; compute after xline4;&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; sex = 'Students over 125 lbs';&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; weight.mean = heavy.sum;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; call define('weight.mean','format','8.0');&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;&amp;nbsp; height.mean = .;&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; compute after;&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; sex = 'Overall Averages';&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;run;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;ods html close;&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Sep 2014 23:41:25 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Using-extra-break-lines-to-create-grand-totals-and-subtotals/m-p/155939#M11824</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2014-09-23T23:41:25Z</dc:date>
    </item>
  </channel>
</rss>

