Solution: Different PAGE HEADER in QUIZ

Jon Kvisli Jon.Kvisli@lokaldata.telemax.no
06 Jun 2000 16:19:24 +0200


Thanks to PICKERIJ@norbord.com and Michael.Lee@mclsystemsinc.com for   
their help! Using a combination of their suggestions, I was able to solve   
this problem. Since this is problably of general interest to other QUIZ   
programmers, i post my solutions to the mailinglist hoping that the   
listserver does not cut it into pieces:

Try 1 - using:

SORT ON CUSTOMER-NO
HEAD AT CUSTOMER-NO <first page> SKIP PAGE
REPORT TAB 5 <colum heads> PRINT AT CUSTOMER-NO &
       SKIP &
       TAB 5 <detail lines>

worked well, except that QUIZ put an extra line between each detail line.

Try 2 - using:

DEF D-SPACE-75 CHAR*75 = ""
SORT ON CUSTOMER-NO
PAGE HEADING &
  TAB 5 <column heads> &
  TAB 5 D-SPACE-75 PRINT AT CUSTOMER-NO
HEAD AT CUSTOMER-NO &
  <first page> &
  SKIP PAGE
REPORT TAB 5 <detail lines>

also worked fine, except that the colum headings did not print on the 2nd   
page.
QUIZ consider this page heading to be AT COSTOMER-NO.


My final solution was to use this "thick":

DEF D-SPACE-75 CHAR*75 = ""
DEFINE D-EXTRA-SORT = CUSTOMER-NO
SORT ON CUSTOMER-NO &
     ON D-EXTRA-SORT
PAGE HEADING &
  TAB 5 <column heads> &
  TAB 5 D-SPACE-75 PRINT AT CUSTOMER-NO
HEAD AT CUSTOMER-NO <first page>
HEAD AT D-EXTRA-SORT &
  SKIP PAGE &
  TAB 5 <column heads>
REPORT TAB 5 <detail lines>

The solution is stil not perfect since the column headings prints one   
line lower on page 2 then on the following pages, but this is good enough   
for me. Perhaps someone is able to find an even better solution.


 ------------------------------------------------------------------------
Jon Kvisli          Hellandtunet forsknings-   tlf: 35 06 15 71
Senior systemkons.  og næringssenter           fax: 35 06 15 01
LokalData as        Postboks 4                 mob: 92 65 36 31
www.lokaldata.no    3833 Bø i Telemark   
        jon.kvisli@lokaldata.telemax.no
 ------------------------------------------------------------------------
= = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = = =
Subscribe: "subscribe powerh-l" in message body to majordomo@lists.swau.edu
Unsubscribe: "unsubscribe powerh-l" in message to majordomo@lists.swau.edu
This list is closed, thus to post to the list, you must be a subscriber.