<?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 problem with RBREAK Statement in PROC report in SAS Procedures</title>
    <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115568#M31949</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display sum of all the min and max values for fee. that is the reason i used RBREAK statement. for below code i can get sum for only height. so i need to get sum for min and max also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = sasuser.admit out = want;&lt;/P&gt;&lt;P&gt;columns actlevel (min max),fee height;&lt;/P&gt;&lt;P&gt;define fee/analysis sum;&lt;/P&gt;&lt;P&gt;define actlevel/group;&lt;/P&gt;&lt;P&gt;rbreak after/summarize dol dUl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.,&lt;/P&gt;&lt;P&gt;Yaswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 20 Feb 2013 10:19:48 GMT</pubDate>
    <dc:creator>yaswanthj</dc:creator>
    <dc:date>2013-02-20T10:19:48Z</dc:date>
    <item>
      <title>problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115568#M31949</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want to display sum of all the min and max values for fee. that is the reason i used RBREAK statement. for below code i can get sum for only height. so i need to get sum for min and max also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = sasuser.admit out = want;&lt;/P&gt;&lt;P&gt;columns actlevel (min max),fee height;&lt;/P&gt;&lt;P&gt;define fee/analysis sum;&lt;/P&gt;&lt;P&gt;define actlevel/group;&lt;/P&gt;&lt;P&gt;rbreak after/summarize dol dUl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.,&lt;/P&gt;&lt;P&gt;Yaswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 10:19:48 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115568#M31949</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-02-20T10:19:48Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115569#M31950</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;Try this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;proc report data = sasuser.admit out = want;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;columns actlevel (min max),fee height;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;define fee/analysis sum;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;define actlevel/group;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;break after actlevel/ ol skip summarize;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;rbreak after/summarize dol dUl;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;run;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;&lt;/P&gt;&lt;P style="font-family: 'Helvetica Neue', Helvetica, Arial, 'Lucida Grande', sans-serif; background-color: #ffffff;"&gt;/Daman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 10:35:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115569#M31950</guid>
      <dc:creator>damanaulakh88</dc:creator>
      <dc:date>2013-02-20T10:35:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115570#M31951</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daman,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick reply&lt;/P&gt;&lt;P&gt;I have tried with your code. but not meeting exact requirement what i want is, i need to display sum of _C2_ column value in end of the report, same as for the column height..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;yaswanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 10:46:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115570#M31951</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-02-20T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115571#M31952</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; I suggest you change the code as shown below. If you also want SUM for FEE, then remove the SUM statistic from the DEFINE statement and put it in the parentheses with the MIN and MAX statistics. Otherwise, with SUM explicitly in the DEFINE statement, you are sort of giving PROC REPORT conflicting instructions...with MIN and MAX in the COLUMN statement, but then SUM in the DEFINE statement.&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;proc report data = sasuser.admit nowd out = want;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;columns actlevel (min max sum),fee height;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;define fee/analysis ;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-family: courier new,courier;"&gt;...more code...&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 20 Feb 2013 18:33:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115571#M31952</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2013-02-20T18:33:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115572#M31953</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Cynthia,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you for your reply..sorry for delayed response, because i was on holiday..&lt;/P&gt;&lt;P&gt;actually what i want to display is, for the variables(minfee, maxfee). i required to get the sum of "min fee" and sum of&amp;nbsp; "max fee". should be like below displayed.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rbreak_want.bmp" class="jive-image" src="https://communities.sas.com/legacyfs/online/3129_rbreak_want.bmp" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i trying to execute above code i am getting min value for "min fee", max value for "maxfee" while using rbreak like below.&lt;/P&gt;&lt;P&gt;&lt;IMG alt="rbreak.JPG" class="jive-image" src="https://communities.sas.com/legacyfs/online/3128_rbreak.JPG" /&gt;&lt;/P&gt;&lt;P&gt;Please help..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Yaswanth J&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 09:51:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115572#M31953</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-02-27T09:51:36Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115573#M31954</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Yaswanth&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try this...i think it may help you&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc sort data= sasuser.admit out = admit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; by actlevel;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc univariate data = admit;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; var&amp;nbsp; fee height weight;&lt;/P&gt;&lt;P&gt;&amp;nbsp; by actlevel;&lt;/P&gt;&lt;P&gt;&amp;nbsp; output out = admit1&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; min= min1&lt;/P&gt;&lt;P&gt;&amp;nbsp; max = max1&lt;/P&gt;&lt;P&gt;&amp;nbsp; sum = sum1 sum2 sum3;&lt;/P&gt;&lt;P&gt;&amp;nbsp; run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = admit1 nowd list split = "/";&lt;/P&gt;&lt;P&gt;&amp;nbsp; column actlevel&amp;nbsp;&amp;nbsp; sum2 sum3 sum1 max1 min1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define actlevel/"/ Actlevel" group width = 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum2 / " /Height" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum3 / " /Weight" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum1 / "/Fee" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define max1/&amp;nbsp; "Max / Fee"sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define min1/&amp;nbsp; "Min / Fee"sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after/ summarize&amp;nbsp; dol ;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or U can try this if you want&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = admit1 nowd list split = "/";&lt;/P&gt;&lt;P&gt;&amp;nbsp; column actlevel&amp;nbsp;&amp;nbsp; sum2 sum3 sum1 max1 min1;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; define actlevel/"/ Actlevel" group width = 8;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum2 / " /Height" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum3 / " /Weight" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define sum1 / "/Fee" sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define max1/&amp;nbsp; "Max/____/ Fee"sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; define min1/&amp;nbsp; "Min/____/Fee"sum;&lt;/P&gt;&lt;P&gt;&amp;nbsp; rbreak after/ summarize&amp;nbsp; dol ;&lt;/P&gt;&lt;P&gt; run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2013 16:29:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115573#M31954</guid>
      <dc:creator>Sidhu</dc:creator>
      <dc:date>2013-02-27T16:29:55Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115574#M31955</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I would be uncomfortable with having the sum of the minimums in the same column as the minimums - too easy to be misinterpreted.&amp;nbsp; The LINE statement could be used (code adapted here for testing against the CLASS data set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = sashelp.class nowd;&lt;/P&gt;&lt;P&gt;columns sex (min max),age height;&lt;/P&gt;&lt;P&gt;define sex/group;&lt;/P&gt;&lt;P&gt;define age/analysis sum;&lt;/P&gt;&lt;P&gt;rbreak after/summarize;&lt;/P&gt;&lt;P&gt;compute height;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; if _break_=' ' then do;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c2 + _c2_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; c3 + _c3_;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; end;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;compute after;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; line 'Sum of minimums' c2 3.;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; line 'Sum of maximums' c3 3.;&lt;/P&gt;&lt;P&gt;endcomp;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 07:13:03 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115574#M31955</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2013-02-28T07:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115575#M31956</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;Better to use To proc reports to meet your requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;proc report data = sasuser.admit out = want;&lt;/P&gt;&lt;P&gt;columns actlevel (min max),fee height;&lt;/P&gt;&lt;P&gt;define fee/analysis sum;&lt;/P&gt;&lt;P&gt;define actlevel/group;&lt;/P&gt;&lt;P&gt;rbreak after/summarize dol dUl;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRoc report data=want;&lt;/P&gt;&lt;P&gt;columns actlevel _C2_ _C3_ Height;&lt;/P&gt;&lt;P&gt;define Actlevel/"Actlevel";&lt;/P&gt;&lt;P&gt;define _c2_/"Min/Fee";&lt;/P&gt;&lt;P&gt;define _c3_/"Max/Fee";&lt;/P&gt;&lt;P&gt;Define Height/"Height";&lt;/P&gt;&lt;P&gt;rbreak after/summarize dul dol;&lt;/P&gt;&lt;P&gt;run;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&amp;amp;regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sanjeev.K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 10:26:41 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115575#M31956</guid>
      <dc:creator>kuridisanjeev</dc:creator>
      <dc:date>2013-02-28T10:26:41Z</dc:date>
    </item>
    <item>
      <title>Re: problem with RBREAK Statement in PROC report</title>
      <link>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115576#M31957</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Art and sidhu for quick reply ..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with Sanjeev`s code, it`s meeting my requirement..Thanks sanjeev..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Yaswanth J.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Feb 2013 10:47:42 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Procedures/problem-with-RBREAK-Statement-in-PROC-report/m-p/115576#M31957</guid>
      <dc:creator>yaswanthj</dc:creator>
      <dc:date>2013-02-28T10:47:42Z</dc:date>
    </item>
  </channel>
</rss>

