<?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 Report Grand Total in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263369#M15608</link>
    <description>&lt;P&gt;Use COMPUTE block instead of RBREAK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Compute after ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Brkline="Grand Total :";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; StudentclassReport=brkline;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 Apr 2016 01:17:17 GMT</pubDate>
    <dc:creator>Ksharp</dc:creator>
    <dc:date>2016-04-13T01:17:17Z</dc:date>
    <item>
      <title>Proc Report Grand Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263298#M15606</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Hello,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Running a complicated Proc Report. I have one final problem my grand total. I am currently using "rbreak after" to compute a grand total, but it is not working for my computed columns. Anyone have any ideas?&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;proc report data=FundingYear missing nowd completecols&amp;nbsp;&amp;nbsp; out=Nurse1;&lt;BR /&gt;where IOCategory="Nursing" &amp;nbsp;&lt;BR /&gt;and semester in ("&amp;amp;Semester1" "&amp;amp;Semester2" "&amp;amp;Semester3" "&amp;amp;Semester4" "&amp;amp;semester5" "&amp;amp;Semester6") ;&lt;BR /&gt;column StudentclassReport&amp;nbsp; Acad_Plan_Description CBM001major Sub_Plan_Description location IOCategory Semester,(student CBM001SCHAllStatefund)&lt;BR /&gt;FTSELast LastFunding FTSECurrent Currentfunding DiffFTE DIFFFund;&lt;BR /&gt;&lt;BR /&gt;define StudentclassReport/ group order=data "Class Description";&lt;BR /&gt;define Acad_Plan_Description/ group "Academic Plan" ;&lt;BR /&gt;define CBM001major/ group "CIP" ;&lt;BR /&gt;define Sub_Plan_Description/ group "Academic Sub-Plan";&lt;BR /&gt;define location/ group "Location" ;&lt;BR /&gt;define IOCategory/group "I &amp;amp; O Category";&lt;BR /&gt;Define Semester/ across order=data "Semester";&lt;BR /&gt;Define student/ analysis sum "HeadCount";&lt;BR /&gt;Define CBM001SCHAllStatefund/ analysis sum "SCH";&lt;BR /&gt;define FTSELast/ computed "Last Base FTE";&lt;BR /&gt;define LastFunding/ computed "Fund Last";&lt;BR /&gt;define FTSECurrent/ computed "Current Base FTE";&lt;BR /&gt;define Currentfunding/ computed "Projected Funding";&lt;BR /&gt;define DiffFTE/ computed "Diff FTE";&lt;BR /&gt;define DIFFFund/ computed "Diff Funding";&lt;BR /&gt;break after StudentclassReport/ ol skip summarize suppress;&lt;BR /&gt;rbreak after /summarize ol ;&lt;BR /&gt;&lt;BR /&gt;Compute after StudentclassReport;&lt;BR /&gt;Brkline=" Total for "|| trim(StudentclassReport);&lt;BR /&gt;StudentclassReport=brkline;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute FTSELast;&lt;BR /&gt;If&amp;nbsp; StudentclassReport="Undergraduates" then FTSELast=sum(_C8_,_C10_,_C12_)/30;&lt;BR /&gt;If StudentclassReport="Master's Level" then FTSELast=sum(_C8_,_C10_,_C12_)/24;&lt;BR /&gt;If StudentclassReport="Doctoral" then FTSELast=sum(_C8_,_C10_,_C12_)/18;&lt;BR /&gt;IF FTSELast=. then FTSELast=0;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute LastFunding;&lt;BR /&gt;LastFunding=(FTSELast)*&amp;amp;NurWFTEf;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute FTSECurrent;&lt;BR /&gt;If&amp;nbsp; StudentclassReport="Undergraduates" then FTSECurrent=sum(_C18_,_C14_,_C16_)/30;&lt;BR /&gt;If StudentclassReport="Master's Level" then FTSECurrent=sum(_C18_,_C14_,_C16_)/24;&lt;BR /&gt;If StudentclassReport="Doctoral" then FTSECurrent=sum(_C18_,_C14_,_C16_)/18;&lt;BR /&gt;IF FTSECurrent=. then FTSECurrent=0;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute Currentfunding;&lt;BR /&gt;Currentfunding=(FTSECurrent)*&amp;amp;NurWFTEf;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute DiffFTE;&lt;BR /&gt;DiffFTE=FTSECurrent-FTSELast;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;compute DIFFFund;&lt;BR /&gt;DIFFFund=Currentfunding-LastFunding;&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;compute StudentclassReport;&lt;BR /&gt;IF StudentclassReport NE ' ' then hold=StudentclassReport;&lt;BR /&gt;IF StudentclassReport EQ ' ' then StudentclassReport=hold;&lt;BR /&gt;if _break_ = '_RBREAK_' then&lt;BR /&gt;StudentclassReport = 'Grand Total';&lt;BR /&gt;endcomp;&lt;BR /&gt;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 19:09:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263298#M15606</guid>
      <dc:creator>RunningIR</dc:creator>
      <dc:date>2016-04-12T19:09:41Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Grand Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263346#M15607</link>
      <description>&lt;P&gt;You should provide some example input data, preferably in the form of datastep code, values for the macro variables, and what you would expect the result to look like.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 23:46:35 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263346#M15607</guid>
      <dc:creator>ballardw</dc:creator>
      <dc:date>2016-04-12T23:46:35Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Report Grand Total</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263369#M15608</link>
      <description>&lt;P&gt;Use COMPUTE block instead of RBREAK.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;SPAN&gt;Compute after ;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; Brkline="Grand Total :";&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp; StudentclassReport=brkline;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;endcomp;&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 Apr 2016 01:17:17 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Report-Grand-Total/m-p/263369#M15608</guid>
      <dc:creator>Ksharp</dc:creator>
      <dc:date>2016-04-13T01:17:17Z</dc:date>
    </item>
  </channel>
</rss>

