<?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: Summarize on a noprint column in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4563#M1851</link>
    <description>thanks for the help, it worked just like i wanted it too.</description>
    <pubDate>Thu, 06 Sep 2007 15:38:36 GMT</pubDate>
    <dc:creator>deleted_user</dc:creator>
    <dc:date>2007-09-06T15:38:36Z</dc:date>
    <item>
      <title>Summarize on a noprint column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4560#M1848</link>
      <description>I want to order my report on a noprint column but can not get the compute after to automatically format without hardcoding the title and column totals myself. Is there an easier way to do this. &lt;BR /&gt;
&lt;BR /&gt;
 PROC REPORT DATA=RPT2                                                   &lt;BR /&gt;
 HEADLINE HEADSKIP LS=200                                                &lt;BR /&gt;
          SPLIT='*';                                                     &lt;BR /&gt;
 TITLE;                                                                  &lt;BR /&gt;
 DEFINE GROUP_TYPE / ORDER NOPRINT;                                      &lt;BR /&gt;
 DEFINE ACCT / ORDER  'ACCT';                                            &lt;BR /&gt;
 DEFINE SEG_SDES / 'DESCRIPTION';                                        &lt;BR /&gt;
 DEFINE FGCA / 'ITC*FGC-FED' FORMAT=COMMA14.;                            &lt;BR /&gt;
 DEFINE LTOTAL / 'ITC*PLNT-FORCED' FORMAT=COMMA14.;                      &lt;BR /&gt;
 DEFINE NTOTAL / 'ITC*NATL-FORCED' FORMAT=COMMA14.;                      &lt;BR /&gt;
 DEFINE LNTOTAL / 'ITC*TOTAL' FORMAT=COMMA14.;                           &lt;BR /&gt;
 DEFINE PD_ACT     /  'OGN*TOTAL' FORMAT=COMMA14.;                       &lt;BR /&gt;
 DEFINE DELTA         / 'ITC * OVER/(UNDER) * OGN' FORMAT=COMMA14.;      &lt;BR /&gt;
                                                                         &lt;BR /&gt;
 COLUMN GROUP_TYPE ACCT SEG_SDES FGCA                                    &lt;BR /&gt;
 LTOTAL NTOTAL LNTOTAL PD_ACT DELTA;                                     &lt;BR /&gt;
                                                                         &lt;BR /&gt;
 COMPUTE BEFORE _PAGE_;                                                  &lt;BR /&gt;
 LINE @02 'REPORT FIGJLITC                                FRITO-LAY, INC.&lt;BR /&gt;
 LINE @02 'JOBID  ITCJLOGNW               FIGJLITC REORT 1A: RECONCILE CO&lt;BR /&gt;
  VS OGN - CDSD';                                                        &lt;BR /&gt;
 LINE @49 'NATIONAL BY ACCOUNT';                                         &lt;BR /&gt;
 LINE @49 "PERIOD &amp;amp;CURRPD,  &amp;amp;CURRYR"                                     &lt;BR /&gt;
 LINE @3 ' ' ;                                                           &lt;BR /&gt;
 LINE @3 ' ' ;                                                           &lt;BR /&gt;
 ENDCOMP;                                                                &lt;BR /&gt;
                                                                         &lt;BR /&gt;
 COMPUTE AFTER GROUP_TYPE;                                               &lt;BR /&gt;
   FGCA_TOTAL=FGCA.SUM;                                                  &lt;BR /&gt;
   LTOTAL_TOTAL=LTOTAL.SUM;                                              &lt;BR /&gt;
   NTOTAL_TOTAL=NTOTAL.SUM;                                              &lt;BR /&gt;
   LNTOTAL_TOTAL=LNTOTAL.SUM;                                            &lt;BR /&gt;
   DELTA_TOTAL=DELTA.SUM;                                                &lt;BR /&gt;
   OGN_TOTAL=PD_ACT.SUM;                                                 &lt;BR /&gt;
   TEST1  = 'TOTAL        ' ||GROUP_TYPE||'           '                  &lt;BR /&gt;
   ||PUT(FGCA_TOTAL, COMMA14.)||'      '                                 &lt;BR /&gt;
   ||PUT(LTOTAL_TOTAL, COMMA10.)|| '      '                              &lt;BR /&gt;
   ||PUT(NTOTAL_TOTAL, COMMA10.)|| '  '                                  &lt;BR /&gt;
   ||PUT(LNTOTAL_TOTAL, COMMA14.)|| '  '                                 &lt;BR /&gt;
   ||PUT(OGN_TOTAL, COMMA14.)|| '      '                                 &lt;BR /&gt;
   ||PUT(DELTA_TOTAL, COMMA10.) ;                                        &lt;BR /&gt;
   LINE @11 TEST1 $150.;                                                 &lt;BR /&gt;
   LINE ' ';                                                             &lt;BR /&gt;
   ENDCOMP;</description>
      <pubDate>Wed, 05 Sep 2007 22:27:55 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4560#M1848</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-05T22:27:55Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize on a noprint column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4561#M1849</link>
      <description>Hi:&lt;BR /&gt;
  Haven't really done much with this, but having been an English major in a former life, I proof subconsciously &amp;amp; noticed these:&lt;BR /&gt;
[pre]&lt;BR /&gt;
LINE @02 'REPORT FIGJLITC FRITO-LAY, INC.  &amp;lt;--- missing single quote&lt;BR /&gt;
                                                and missing semi-colon&lt;BR /&gt;
&lt;BR /&gt;
LINE @49 "PERIOD &amp;amp;CURRPD, &amp;amp;CURRYR"   &amp;lt;--- missing semi-colon&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
Also a question -- what is your ultimate destination of choice -- LISTING window, HTML, RTF or PDF???&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 06 Sep 2007 00:07:18 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4561#M1849</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-06T00:07:18Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize on a noprint column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4562#M1850</link>
      <description>Hi... I'm not exactly sure what you mean by "automatically" format, but I find myself wondering why you don't use the BREAK statement. For example, this report on a subset of SASHELP.PRDSALE:&lt;BR /&gt;
[pre]&lt;BR /&gt;
 REPORT FIGJLITC FRITO-LAY, INC.&lt;BR /&gt;
 JOBID ITCJLOGNW FIGJLITC REORT 1A: RECONCILE COVS OGN - CDSD&lt;BR /&gt;
                                                NATIONAL BY ACCOUNT&lt;BR /&gt;
                                                PERIOD Quarter 2, 2007&lt;BR /&gt;
&lt;BR /&gt;
&lt;BR /&gt;
                                          ITC             ITC&lt;BR /&gt;
  REGION      DESCRIPTION         PLNT-FORCED     NATL-FORCED&lt;BR /&gt;
  -----------------------------------------------------------&lt;BR /&gt;
&lt;BR /&gt;
  EAST        FURNITURE                   996             977&lt;BR /&gt;
              FURNITURE                   959             819&lt;BR /&gt;
              FURNITURE                   962             323&lt;BR /&gt;
              OFFICE                      957             885&lt;BR /&gt;
              OFFICE                      993             713&lt;BR /&gt;
              OFFICE                      961             971&lt;BR /&gt;
              OFFICE                      951             811&lt;BR /&gt;
              OFFICE                      996              50&lt;BR /&gt;
              OFFICE                      963             839&lt;BR /&gt;
              OFFICE                      994             388&lt;BR /&gt;
              OFFICE                      978             296&lt;BR /&gt;
              OFFICE                    1,000             598&lt;BR /&gt;
              OFFICE                      956             511&lt;BR /&gt;
              OFFICE                      988             398&lt;BR /&gt;
              OFFICE                      953             328&lt;BR /&gt;
              OFFICE                      988             967&lt;BR /&gt;
  WEST        FURNITURE                   982             739&lt;BR /&gt;
              FURNITURE                   954             201&lt;BR /&gt;
              FURNITURE                   992             287&lt;BR /&gt;
              FURNITURE                   996             643&lt;BR /&gt;
              OFFICE                      981             268&lt;BR /&gt;
              OFFICE                      966             522&lt;BR /&gt;
              OFFICE                      986             942&lt;BR /&gt;
              OFFICE                      991             143&lt;BR /&gt;
              OFFICE                      952             855&lt;BR /&gt;
              OFFICE                      983             180&lt;BR /&gt;
  ==========                   ==============  ==============&lt;BR /&gt;
  GERMANY                              25,378          14,654&lt;BR /&gt;
  ==========                   ==============  ==============&lt;BR /&gt;
&lt;BR /&gt;
  EAST        OFFICE                      956             579&lt;BR /&gt;
              OFFICE                      964             202&lt;BR /&gt;
              OFFICE                      968             557&lt;BR /&gt;
              OFFICE                      984              65&lt;BR /&gt;
              OFFICE                      953             882&lt;BR /&gt;
              OFFICE                      977             669&lt;BR /&gt;
              OFFICE                      977             331&lt;BR /&gt;
  WEST        FURNITURE                   961             321&lt;BR /&gt;
              FURNITURE                   984             451&lt;BR /&gt;
              FURNITURE                   974             760&lt;BR /&gt;
              OFFICE                      972              39&lt;BR /&gt;
              OFFICE                      955             883&lt;BR /&gt;
              OFFICE                      955             442&lt;BR /&gt;
              OFFICE                      960             391&lt;BR /&gt;
  ==========                   ==============  ==============&lt;BR /&gt;
  U.S.A.                               13,540           6,572&lt;BR /&gt;
  ==========                   ==============  ==============&lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
was produced with this code -- note the use of the BREAK statement and the COMPUTE after statement.&lt;BR /&gt;
[pre]&lt;BR /&gt;
proc sort data=sashelp.prdsale out=prdsale;&lt;BR /&gt;
where actual gt 950 and&lt;BR /&gt;
      country ne 'CANADA';&lt;BR /&gt;
by country region prodtype;&lt;BR /&gt;
run;&lt;BR /&gt;
    &lt;BR /&gt;
options nodate nonumber;&lt;BR /&gt;
ods listing;&lt;BR /&gt;
ods html file='c:\temp\autoformat.html' style=sasweb;&lt;BR /&gt;
   &lt;BR /&gt;
PROC REPORT DATA=prdsale nowd HEADLINE HEADSKIP LS=100 ps=60 SPLIT='*' nocenter; &lt;BR /&gt;
TITLE; &lt;BR /&gt;
   &lt;BR /&gt;
COLUMN country region prodtype ACTUAL PREDICT; &lt;BR /&gt;
    &lt;BR /&gt;
DEFINE country / order NOPRINT; &lt;BR /&gt;
DEFINE region / ORDER 'REGION'; &lt;BR /&gt;
DEFINE prodtype /display 'DESCRIPTION' f=$15.; &lt;BR /&gt;
DEFINE ACTUAL / sum 'ITC*PLNT-FORCED' FORMAT=COMMA14.; &lt;BR /&gt;
DEFINE PREDICT /sum  'ITC*NATL-FORCED' FORMAT=COMMA14.;&lt;BR /&gt;
   &lt;BR /&gt;
COMPUTE BEFORE _PAGE_; &lt;BR /&gt;
LINE @02 'REPORT FIGJLITC FRITO-LAY, INC.';&lt;BR /&gt;
LINE @02 'JOBID ITCJLOGNW FIGJLITC REORT 1A: RECONCILE COVS OGN - CDSD'; &lt;BR /&gt;
LINE @49 'NATIONAL BY ACCOUNT'; &lt;BR /&gt;
LINE @49 "PERIOD &amp;amp;CURRPD, &amp;amp;CURRYR" ;&lt;BR /&gt;
LINE @3 ' ' ; &lt;BR /&gt;
LINE @3 ' ' ; &lt;BR /&gt;
ENDCOMP; &lt;BR /&gt;
   &lt;BR /&gt;
compute before country;&lt;BR /&gt;
  holdcntry = country;&lt;BR /&gt;
endcomp;&lt;BR /&gt;
   &lt;BR /&gt;
break after country /summarize skip dol dul;&lt;BR /&gt;
   &lt;BR /&gt;
compute after country;&lt;BR /&gt;
  region = trim(holdcntry);&lt;BR /&gt;
endcomp;&lt;BR /&gt;
   &lt;BR /&gt;
run; &lt;BR /&gt;
ods html close;&lt;BR /&gt;
[/pre]&lt;BR /&gt;
   &lt;BR /&gt;
And I also wonder why you're using a COMPUTE block:&lt;BR /&gt;
[pre]&lt;BR /&gt;
COMPUTE BEFORE _PAGE_; &lt;BR /&gt;
LINE @02 'REPORT FIGJLITC FRITO-LAY, INC.';&lt;BR /&gt;
LINE @02 'JOBID ITCJLOGNW FIGJLITC REORT 1A: RECONCILE COVS OGN - CDSD'; &lt;BR /&gt;
LINE @49 'NATIONAL BY ACCOUNT'; &lt;BR /&gt;
LINE @49 "PERIOD &amp;amp;CURRPD, &amp;amp;CURRYR" ;&lt;BR /&gt;
LINE @3 ' ' ; &lt;BR /&gt;
LINE @3 ' ' ; &lt;BR /&gt;
ENDCOMP; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
&lt;BR /&gt;
versus a SAS TITLE statement:&lt;BR /&gt;
[pre]&lt;BR /&gt;
title  'REPORT FIGJLITC FRITO-LAY, INC.';&lt;BR /&gt;
title2  'JOBID ITCJLOGNW FIGJLITC REORT 1A: RECONCILE COVS OGN - CDSD'; &lt;BR /&gt;
title3  'NATIONAL BY ACCOUNT'; &lt;BR /&gt;
title4  "PERIOD &amp;amp;CURRPD, &amp;amp;CURRYR" ;&lt;BR /&gt;
title5  ' ' ; &lt;BR /&gt;
title6  ' ' ; &lt;BR /&gt;
[/pre]&lt;BR /&gt;
  &lt;BR /&gt;
The compute block will put your text within the "box" of the table, but the title statement will put this text outside of the "box" of the table and will center the information at the top of the output page. Even though you are using many PROC REPORT options that are specific to the LISTING destination, I have included ODS HTML statements so you can compare how this looks in HTML versus the LISTING window.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia</description>
      <pubDate>Thu, 06 Sep 2007 01:18:05 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4562#M1850</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2007-09-06T01:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: Summarize on a noprint column</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4563#M1851</link>
      <description>thanks for the help, it worked just like i wanted it too.</description>
      <pubDate>Thu, 06 Sep 2007 15:38:36 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Summarize-on-a-noprint-column/m-p/4563#M1851</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2007-09-06T15:38:36Z</dc:date>
    </item>
  </channel>
</rss>

