Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Print File Overflow in RPGLE! HELP!

1,052 views
Skip to first unread message

Chris Bereznay

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Can anyone tell me how to handle overflow with an externally described
print file ( created with RLU )? I was going to add the OFLIND(*INOF) to
the keyword section of the file specs, but the manual says thats only for
program described printer files and SEU won't let me do it. HELP!

Paul Nicolay

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Hi Chris,

I usually check overflow by getting the information from a printer
informational DS. As it contains the current line, and overflow line, you
can make the necessary calculations in your program to see if the format
you're planning to write still fits on the page ... and if not, you can
write a new header.

Regards,
Paul
__________________
Chris Bereznay <Br...@Bigfoot.com> wrote in article
<01bdc528$538daf40$5503...@314c.ae-outfitters.com>...


The contents of this message express only the sender's opinion.
This message does not necessarily reflect the policy or views of
my employer, Merck & Co., Inc. All responsibility for the statements
made in this Usenet posting resides solely and completely with the
sender.

David Knittle

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
here we typically place an error indicator on the write statements. when
overflow occurs, the error is trapped, and you can perform your overflow
logic.

Mike Cravitz

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Chris, OA-OG, and OV are for program described print only. Use a
numeric indicator. So you may code your keyword...OflInd( *IN60 ).
Also, this indicator comes on when there's overflow, but you must
programatically turn it off. Your code will look something like this.


If *IN60 = *On
Write Hdg
Eval IN60 = *Off
EndIf

Mike Cravitz

NEWS/400 Technical Editor

Chris Bereznay

unread,
Aug 11, 1998, 3:00:00 AM8/11/98
to
Thanks to everyone for all the help with this issue. I've had 4 excellent
responses today, and all of them worked. I even dropped them all into the
code just for the practice. Thanks again.

Mike Cravitz <mcra...@worldnet.att.net> wrote in article
<35d15208...@www.newslink400.com>...

0 new messages