<?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 Print Question in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17081#M3510</link>
    <description>Hi:&lt;BR /&gt;
  Starting in SAS 9.2 you can use the SUMLABEL option to display the BY variable label on the summary line:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000064114.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000064114.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
However, PROC REPORT has always had the capabililty to do this -- 2 examples are below -- one with BY groups and one without:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  where region in ('Asia', 'Canada') and&lt;BR /&gt;
        product='Slipper';&lt;BR /&gt;
  column region subsidiary sales;&lt;BR /&gt;
  define region / order;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    Region = 'Fund Total';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  where region in ('Asia', 'Canada') and&lt;BR /&gt;
        product='Slipper';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  column region subsidiary sales;&lt;BR /&gt;
  define region / order noprint;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    Subsidiary = 'Fund Total';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
You may have to do some other small changes if ALLOCNBR or YEAR is numeric. But PROC REPORT may get you what you want without waiting for 9.2 to be installed.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
    <pubDate>Fri, 09 May 2008 22:11:06 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2008-05-09T22:11:06Z</dc:date>
    <item>
      <title>Proc Print Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17080#M3509</link>
      <description>I am using Proc Print SUM to print the total.  Can I use LABEL on the sum?&lt;BR /&gt;
In the example below, I would like to change "ALLOCNBR" to "Fund Total".  How can I do this in proc print? &lt;BR /&gt;
&lt;BR /&gt;
Thanks for any input!!&lt;BR /&gt;
KevinC.&lt;BR /&gt;
&lt;BR /&gt;
 PAYMENT&lt;BR /&gt;
 YEAR        COUNT          TOTAL DUE    SPECHNDL&lt;BR /&gt;
&lt;BR /&gt;
 2008          1           $25,000.00      MYP&lt;BR /&gt;
 2009          2           $35,000.00      MYP&lt;BR /&gt;
 2010          2           $45,000.00      MYP&lt;BR /&gt;
 2011          1           $20,000.00      MYP&lt;BR /&gt;
 --------                      ---------------&lt;BR /&gt;
 ALLOCNBR                 $125,000.00</description>
      <pubDate>Fri, 09 May 2008 21:26:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17080#M3509</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2008-05-09T21:26:05Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17081#M3510</link>
      <description>Hi:&lt;BR /&gt;
  Starting in SAS 9.2 you can use the SUMLABEL option to display the BY variable label on the summary line:&lt;BR /&gt;
&lt;A href="http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000064114.htm" target="_blank"&gt;http://support.sas.com/documentation/cdl/en/proc/59565/HTML/default/a000064114.htm&lt;/A&gt;&lt;BR /&gt;
&lt;BR /&gt;
However, PROC REPORT has always had the capabililty to do this -- 2 examples are below -- one with BY groups and one without:&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  where region in ('Asia', 'Canada') and&lt;BR /&gt;
        product='Slipper';&lt;BR /&gt;
  column region subsidiary sales;&lt;BR /&gt;
  define region / order;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    Region = 'Fund Total';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
&lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  where region in ('Asia', 'Canada') and&lt;BR /&gt;
        product='Slipper';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  column region subsidiary sales;&lt;BR /&gt;
  define region / order noprint;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    Subsidiary = 'Fund Total';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
   &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
You may have to do some other small changes if ALLOCNBR or YEAR is numeric. But PROC REPORT may get you what you want without waiting for 9.2 to be installed.&lt;BR /&gt;
&lt;BR /&gt;
cynthia</description>
      <pubDate>Fri, 09 May 2008 22:11:06 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17081#M3510</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2008-05-09T22:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: Proc Print Question</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17082#M3511</link>
      <description>Thank you so much Cynthia !!!</description>
      <pubDate>Mon, 12 May 2008 20:47:46 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Proc-Print-Question/m-p/17082#M3511</guid>
      <dc:creator>KevinC_</dc:creator>
      <dc:date>2008-05-12T20:47:46Z</dc:date>
    </item>
  </channel>
</rss>

