<?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: Repeating Information at the top of the page in ODS and Base Reporting</title>
    <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28307#M4388</link>
    <description>Hi:&lt;BR /&gt;
  In addition to the suggestions made by Tim and Scott, I wonder what you mean by "at the top of the page" --perhaps want to use COMPUTE BEFORE _PAGE_ with a LINE statment???? Or do you want to use BY group processing with #BYVAL, #BYVAR???&lt;BR /&gt;
 &lt;BR /&gt;
  The program below illustrates both of these techniques using both ODS RTF and ODS TAGSETS.RTF for SAS 9.2.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) Use COMPUTE blocks;&lt;BR /&gt;
ods tagsets.rtf file='c:\temp\comp_bef_ts.rtf';&lt;BR /&gt;
ods rtf file='c:\temp\comp_bef_orig.rtf';&lt;BR /&gt;
                                       &lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  title '1) Compare COMPUTE BEFORE _PAGE_ with COMPUTE BEFORE';&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
  where region in ('Africa', 'Asia');&lt;BR /&gt;
  define region / group page noprint;&lt;BR /&gt;
  define subsidiary /group;&lt;BR /&gt;
  define product / group;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before _page_ / style={just=l background=pink};&lt;BR /&gt;
    length txtline $100;&lt;BR /&gt;
    txtline = '1/Region is: '||trim(region);&lt;BR /&gt;
    line txtline $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before region/ style={just=l background=lightblue};&lt;BR /&gt;
    length txtline2 $100;&lt;BR /&gt;
    txtline2 = '2/Region is: '||trim(region);&lt;BR /&gt;
    line txtline2 $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
title;&lt;BR /&gt;
                      &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                        &lt;BR /&gt;
** 2) Use #BYVAR/#BYVAL;&lt;BR /&gt;
ods tagsets.rtf file='c:\temp\title_byline_ts.rtf';&lt;BR /&gt;
ods rtf file='c:\temp\title_byline_orig.rtf';&lt;BR /&gt;
                              &lt;BR /&gt;
options nobyline;&lt;BR /&gt;
proc sort data=sashelp.shoes out=shoes;&lt;BR /&gt;
  by region;&lt;BR /&gt;
  where region in ('Africa', 'Asia');&lt;BR /&gt;
run;&lt;BR /&gt;
                                      &lt;BR /&gt;
proc report data=shoes nowd;&lt;BR /&gt;
  title '2) Use Title Options Along with COMPUTE _BEFORE_ PAGE -- decide which you want';&lt;BR /&gt;
  title2 '#BYVAR1: #BYVAL1';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
  define region / group noprint;&lt;BR /&gt;
  define subsidiary /group;&lt;BR /&gt;
  define product / group;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before _page_ / style={just=l background=pink};&lt;BR /&gt;
    length txtline $100;&lt;BR /&gt;
    txtline = '1/Region is: '||trim(region);&lt;BR /&gt;
    line txtline $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before region/ style={just=l background=lightblue};&lt;BR /&gt;
    length txtline2 $100;&lt;BR /&gt;
    txtline2 = '2/Region is: '||trim(region);&lt;BR /&gt;
    line txtline2 $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
title;&lt;BR /&gt;
options byline;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
    <pubDate>Thu, 10 Dec 2009 18:08:57 GMT</pubDate>
    <dc:creator>Cynthia_sas</dc:creator>
    <dc:date>2009-12-10T18:08:57Z</dc:date>
    <item>
      <title>Repeating Information at the top of the page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28304#M4385</link>
      <description>Using Proc Report I have several define statements that use the order parameter to supress additional occurances of the data. However, at the top of each page I would like to see this data displayed. &lt;BR /&gt;
&lt;BR /&gt;
Is there a way to do this? In some cases, I page break on specific variable; in other cases the report just flows.</description>
      <pubDate>Thu, 10 Dec 2009 12:51:22 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28304#M4385</guid>
      <dc:creator>deleted_user</dc:creator>
      <dc:date>2009-12-10T12:51:22Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Information at the top of the page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28305#M4386</link>
      <description>If you're using SAS 9.2, try the SPANROWS option on the PROC REPORT statement.</description>
      <pubDate>Thu, 10 Dec 2009 13:39:51 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28305#M4386</guid>
      <dc:creator>Tim_SAS</dc:creator>
      <dc:date>2009-12-10T13:39:51Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Information at the top of the page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28306#M4387</link>
      <description>A search against the SAS.COM support site yielded the note below:&lt;BR /&gt;
&lt;BR /&gt;
&lt;A href="http://support.sas.com/kb/7/887.html" target="_blank"&gt;http://support.sas.com/kb/7/887.html&lt;/A&gt;&lt;BR /&gt;
Problem Note 7887: PROC REPORT does not repeat values of GROUP/ORDER variables when groups break across pages&lt;BR /&gt;
&lt;BR /&gt;
Scott Barry&lt;BR /&gt;
SBBWorks, Inc.&lt;BR /&gt;
&lt;BR /&gt;
P.S.  Google advanced search argument for consideration:&lt;BR /&gt;
&lt;BR /&gt;
proc report order variable page heading site:sas.com</description>
      <pubDate>Thu, 10 Dec 2009 13:52:20 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28306#M4387</guid>
      <dc:creator>sbb</dc:creator>
      <dc:date>2009-12-10T13:52:20Z</dc:date>
    </item>
    <item>
      <title>Re: Repeating Information at the top of the page</title>
      <link>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28307#M4388</link>
      <description>Hi:&lt;BR /&gt;
  In addition to the suggestions made by Tim and Scott, I wonder what you mean by "at the top of the page" --perhaps want to use COMPUTE BEFORE _PAGE_ with a LINE statment???? Or do you want to use BY group processing with #BYVAL, #BYVAR???&lt;BR /&gt;
 &lt;BR /&gt;
  The program below illustrates both of these techniques using both ODS RTF and ODS TAGSETS.RTF for SAS 9.2.&lt;BR /&gt;
 &lt;BR /&gt;
cynthia&lt;BR /&gt;
 &lt;BR /&gt;
[pre]&lt;BR /&gt;
** 1) Use COMPUTE blocks;&lt;BR /&gt;
ods tagsets.rtf file='c:\temp\comp_bef_ts.rtf';&lt;BR /&gt;
ods rtf file='c:\temp\comp_bef_orig.rtf';&lt;BR /&gt;
                                       &lt;BR /&gt;
proc report data=sashelp.shoes nowd;&lt;BR /&gt;
  title '1) Compare COMPUTE BEFORE _PAGE_ with COMPUTE BEFORE';&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
  where region in ('Africa', 'Asia');&lt;BR /&gt;
  define region / group page noprint;&lt;BR /&gt;
  define subsidiary /group;&lt;BR /&gt;
  define product / group;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before _page_ / style={just=l background=pink};&lt;BR /&gt;
    length txtline $100;&lt;BR /&gt;
    txtline = '1/Region is: '||trim(region);&lt;BR /&gt;
    line txtline $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before region/ style={just=l background=lightblue};&lt;BR /&gt;
    length txtline2 $100;&lt;BR /&gt;
    txtline2 = '2/Region is: '||trim(region);&lt;BR /&gt;
    line txtline2 $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
title;&lt;BR /&gt;
                      &lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
                        &lt;BR /&gt;
** 2) Use #BYVAR/#BYVAL;&lt;BR /&gt;
ods tagsets.rtf file='c:\temp\title_byline_ts.rtf';&lt;BR /&gt;
ods rtf file='c:\temp\title_byline_orig.rtf';&lt;BR /&gt;
                              &lt;BR /&gt;
options nobyline;&lt;BR /&gt;
proc sort data=sashelp.shoes out=shoes;&lt;BR /&gt;
  by region;&lt;BR /&gt;
  where region in ('Africa', 'Asia');&lt;BR /&gt;
run;&lt;BR /&gt;
                                      &lt;BR /&gt;
proc report data=shoes nowd;&lt;BR /&gt;
  title '2) Use Title Options Along with COMPUTE _BEFORE_ PAGE -- decide which you want';&lt;BR /&gt;
  title2 '#BYVAR1: #BYVAL1';&lt;BR /&gt;
  by region;&lt;BR /&gt;
  column region subsidiary product sales inventory returns;&lt;BR /&gt;
  define region / group noprint;&lt;BR /&gt;
  define subsidiary /group;&lt;BR /&gt;
  define product / group;&lt;BR /&gt;
  break after region / summarize;&lt;BR /&gt;
  compute after region;&lt;BR /&gt;
    line ' ';&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before _page_ / style={just=l background=pink};&lt;BR /&gt;
    length txtline $100;&lt;BR /&gt;
    txtline = '1/Region is: '||trim(region);&lt;BR /&gt;
    line txtline $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
  compute before region/ style={just=l background=lightblue};&lt;BR /&gt;
    length txtline2 $100;&lt;BR /&gt;
    txtline2 = '2/Region is: '||trim(region);&lt;BR /&gt;
    line txtline2 $char100.;&lt;BR /&gt;
  endcomp;&lt;BR /&gt;
run;&lt;BR /&gt;
title;&lt;BR /&gt;
options byline;&lt;BR /&gt;
ods _all_ close;&lt;BR /&gt;
[/pre]</description>
      <pubDate>Thu, 10 Dec 2009 18:08:57 GMT</pubDate>
      <guid>https://communities.sas.com/t5/ODS-and-Base-Reporting/Repeating-Information-at-the-top-of-the-page/m-p/28307#M4388</guid>
      <dc:creator>Cynthia_sas</dc:creator>
      <dc:date>2009-12-10T18:08:57Z</dc:date>
    </item>
  </channel>
</rss>

