<?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 in SAS Programming</title>
    <link>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440394#M109987</link>
    <description>Do you want e.12 to appear in the report?  I assume so otherwise you could eliminate it with a WHERE.</description>
    <pubDate>Tue, 27 Feb 2018 07:03:00 GMT</pubDate>
    <dc:creator>ArtC</dc:creator>
    <dc:date>2018-02-27T07:03:00Z</dc:date>
    <item>
      <title>Proc REport</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440188#M109920</link>
      <description>&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;Please see this code.&lt;/P&gt;&lt;P&gt;I want to do some changes to output and don;t know how to do it in proc report code.&lt;/P&gt;&lt;P&gt;I want to add global total for following &amp;nbsp;grades:&lt;SPAN&gt;a.0,b.1-6 &amp;nbsp;,c.7-10,d.11 (without grade&amp;nbsp;e.12)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Data TBl;&lt;BR /&gt;INPUT grade $ Model $ Obligo;&lt;BR /&gt;Cards;&lt;BR /&gt;a.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &amp;nbsp; 10&lt;BR /&gt;a.0 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; b &amp;nbsp; 20&lt;BR /&gt;b.1-6 &amp;nbsp; &amp;nbsp; &amp;nbsp; a &amp;nbsp; 30&lt;BR /&gt;c.7-10 &amp;nbsp; &amp;nbsp; a &amp;nbsp; 40&lt;BR /&gt;d.11&amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp; a &amp;nbsp; 50&lt;BR /&gt;d.11 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b &amp;nbsp; 60&lt;BR /&gt;e.12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;a &amp;nbsp; 70&lt;BR /&gt;e.12 &amp;nbsp; &amp;nbsp; &amp;nbsp; &amp;nbsp;b &amp;nbsp; 80&lt;BR /&gt;;&lt;BR /&gt;Run;&lt;BR /&gt;libname proclib 'SAS-library';&lt;BR /&gt;options nodate pageno=1 linesize=64 pagesize=60&lt;BR /&gt;fmtsearch=(proclib);&lt;BR /&gt;proc report data=TBl nowd headline headskip;&lt;BR /&gt;column grade Model Obligo ;&lt;BR /&gt;define grade / group&lt;BR /&gt;'Grade';&lt;BR /&gt;define Model / group&lt;BR /&gt;'Model';&lt;BR /&gt;define Obligo / analysis sum&lt;BR /&gt;format=comma10.&lt;BR /&gt;'Ob';&lt;BR /&gt;/*total after each groupkCat*/&lt;BR /&gt;break after grade / ol&lt;BR /&gt;summarize&lt;BR /&gt;suppress&lt;BR /&gt;skip;&lt;BR /&gt;/*global total*/&lt;BR /&gt;rbreak after / summarize;&lt;BR /&gt;compute after;&lt;BR /&gt;type = 'Total';&lt;BR /&gt;endcomp;&lt;BR /&gt;run;&lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 14:40:28 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440188#M109920</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-02-26T14:40:28Z</dc:date>
    </item>
    <item>
      <title>Re: Proc REport</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440394#M109987</link>
      <description>Do you want e.12 to appear in the report?  I assume so otherwise you could eliminate it with a WHERE.</description>
      <pubDate>Tue, 27 Feb 2018 07:03:00 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440394#M109987</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2018-02-27T07:03:00Z</dc:date>
    </item>
    <item>
      <title>Re: Proc REport</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440395#M109988</link>
      <description>&lt;P&gt;Yes.&lt;/P&gt;&lt;P&gt;I want to get subtotal without e.12 &amp;nbsp;and in the row after getting information of e.12 &amp;nbsp;and in row after get total of all(included e.12)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 27 Feb 2018 07:08:07 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440395#M109988</guid>
      <dc:creator>Ronein</dc:creator>
      <dc:date>2018-02-27T07:08:07Z</dc:date>
    </item>
    <item>
      <title>Re: Proc REport</title>
      <link>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440613#M110107</link>
      <description>&lt;P&gt;You may want to try using a multilabel format.&amp;nbsp; Note the (multilabel) option on the VALUE statement and the MLF option on the DEFINE statement.&amp;nbsp; Unless you are writing to the LISTING destination, you can also eliminate a number of REPORT options e.g. HEADLINE, HEADSKIP, SKIP, OL&lt;/P&gt;
&lt;PRE&gt;&lt;CODE class=" language-sas"&gt;Data TBl;
INPUT grade $ Model $ Obligo;
Cards;
a.0        a   10
a.0        b   20
b.1-6      a   30
c.7-10     a   40
d.11       a   50
d.11       b   60
e.12       a   70
e.12       b   80
;
Run;
proc format;
 value $grade (multilabel)
   'a.0'     = 'Primary'   
   'b.1-6'   = 'Primary'
   'c.7-10'  = 'Primary'
   'd.11'    = 'Primary'
   'a.0'     = 'Secondary'   
   'b.1-6'   = 'Secondary'
   'c.7-10'  = 'Secondary'
   'd.11'    = 'Secondary'
   'e.12'    = 'Secondary';
   run;


/*libname proclib 'SAS-library';*/
/*options nodate pageno=1 linesize=64 pagesize=60*/
/*fmtsearch=(proclib);*/
proc report data=TBl;
column grade=ggroup grade Model Obligo ;
define ggroup / group 'Grade Group' f=$grade. mlf;
define grade / group 'Grade';

define Model / group 'Model';
define Obligo / analysis sum
                format=comma10.
                'Ob';
/*total after each groupkCat*/
break after grade / 
/*   ol*/
   summarize
   suppress
/*skip*/
;
/*global total*/
/*rbreak after / summarize;*/
/*compute after;*/
/*type = 'Total';*/
/*endcomp;*/
run;&lt;/CODE&gt;&lt;/PRE&gt;</description>
      <pubDate>Tue, 27 Feb 2018 18:06:13 GMT</pubDate>
      <guid>https://communities.sas.com/t5/SAS-Programming/Proc-REport/m-p/440613#M110107</guid>
      <dc:creator>ArtC</dc:creator>
      <dc:date>2018-02-27T18:06:13Z</dc:date>
    </item>
  </channel>
</rss>

