Question Paged outputs "next-page" event

DOKTORF

New Member
Hi. oe 12.2 windows/unix. I have inherited the unified reporting procedure in paged output which uses a frame header as the page header. The same header contains table headers that no longer fit in the allotted 320 characters. is there any way to distinguish that output has moved to a new page in order to display its title. maybe some event.
 

Osborne

Active Member
Depending on the report it may be possible to distinguish by checking line-counter, page-size or page-number:
Code:
DEFINE STREAM p1.

OUTPUT STREAM p1 TO PRINTER /* PAGE-SIZE 58 */ PAGED.

...

IF LINE-COUNTER(p1) > PAGE-SIZE(p1) THEN DO:
   ...
END.

// or

IF PAGE-NUMBER(p1) <> vPrevPage THEN DO:
   ...
END.
 
Top