PAGE LENGTH IN QUIZ

Carol Kaffenberger kaffenbe@karmanos.org
Wed, 24 Feb 1999 15:47:18 -0500


This is a multi-part message in MIME format.
--------------0F513A675D719B82ADB567BD
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit

Can anyone explain why the PAGE LENGTH variable must be set to the
maximum number of lines expected on a report PLUS 1.  While debugging a
paging problem on a duplex report I discovered this:

    The input file contains 4 records:

        HOSP-NUM                PAGE-BREAK-NUM
        7777                            1
        7777                            1
        7777                            1
        7777                            1

Notice that the fields in each record have the same values--so no
control breaks occur.

There are 2 header lines and 4 footing lines in the program.  So 6
headers & footers plus 4 data records should give me a page length of 10
and it all should fit on 1 page.  But it goes to a second page when the
PAGE LENGTH = 10:

> ACCESS *SB5063
> SET PAGE LENGTH 10
> SORTED ON HOSP-NUM, PAGE-BREAK-NUM
> PAGE HEADING &
>   TAB 01 "LINE1" &
>   SKIP 1 &
>   TAB 01 "LINE2"
> HEADING AT HOSP-NUM SKIP PAGE
> REPORT HOSP-NUM PAGE-BREAK-NUM COUNT
> FOOTING AT PAGE-BREAK-NUM &
>   SKIP 1 &
>   TAB 01 "LINE7 " &
>   SKIP 1 &
>   TAB 01 "LINE8" &
>   SKIP 1 &
>   TAB 01 "LINE9" &
>   SKIP 1 &
>   TAB 01 "LINE10"
> GO

LINE1
LINE2
  7777         1       1
  7777         1       2
  7777         1       3
  7777         1       4



?

LINE1
LINE2
LINE7
LINE8
LINE9
LINE10



?

Records selected:  4
Lines printed:     12
Pages printed:     2


So now if I take the same program and change the PAGE LENGTH to 11, it
all fits on 1 page:

> ACCESS *SB5063
> SET PAGE LENGTH 11
> SORTED ON HOSP-NUM, PAGE-BREAK-NUM
> PAGE HEADING &
>   TAB 01 "LINE1" &
>   SKIP 1 &
>   TAB 01 "LINE2"
> HEADING AT HOSP-NUM SKIP PAGE
> REPORT HOSP-NUM PAGE-BREAK-NUM COUNT
> FOOTING AT PAGE-BREAK-NUM &
>   SKIP 1 &
>   TAB 01 "LINE7 " &
>   SKIP 1 &
>   TAB 01 "LINE8" &
>   SKIP 1 &
>   TAB 01 "LINE9" &
>   SKIP 1 &
>   TAB 01 "LINE10"
> GO

LINE1
LINE2
  7777         1       1
  7777         1       2
  7777         1       3
  7777         1       4
LINE7
LINE8
LINE9
LINE10
?

Records selected:  4
Lines printed:     10
Pages printed:     1

>
What am I missing?  Is there a line reserved for carriage control or
something?  Sorry if this seems elementary, but I'm having trouble with
page footings on a duplex report and I need to understand how this
works.  Thanks in advance.

Carol
(MPE/ix 5.5 - PH 7.29.C8)


--------------0F513A675D719B82ADB567BD
Content-Type: text/x-vcard; charset=us-ascii; name="vcard.vcf"
Content-Transfer-Encoding: 7bit
Content-Description: Card for Carol Kaffenberger
Content-Disposition: attachment; filename="vcard.vcf"

begin:          vcard
fn:             Carol Kaffenberger
n:              Kaffenberger;Carol
org:            Karmanos Cancer Institute
email;internet: kaffenbe@karmanos.org
title:          Information Systems
x-mozilla-cpt:  ;0
x-mozilla-html: FALSE
version:        2.1
end:            vcard


--------------0F513A675D719B82ADB567BD--

= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
powerh-l@lists.swau.edu is gatewayed one-way to bit.listserv.powerh-l
This list is closed, thus to post to the list, you must be a subscriber.