× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Thank you to all who replied!!  I think this is what I was looking for
all along.  Some sort of confirmation that you can indeed print on the
overflow, but that it will generate an error if you don't have the
OFLIND keyword specified on the F spec.

Thanks again!!!

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Scott Klement
Sent: Wednesday, May 03, 2006 4:11 PM
To: RPG programming on the AS400 / iSeries
Subject: Re: Printer File Overflow...

> The printer file has a page length of 66 and an overflow of 66.  When
I 
> run the report to generate the report, I get the dreaded "I/O error 
> CPF5004 was detected in file..." overflow error.

You need to define an overflow indicator with the OFLIND keyword on your

F-spec for the printer file.

Normally, the operating system automatically detects page overflow and 
reports it to the application so that application can do some special 
processing.  That's what the indicator is for... when you reach
overflow, 
this indicator is turned on.

If you don't put an OFLIND on your F-spec, then instead of setting an 
indicator, it sends an *ESCAPE message to your program -- which is what 
you're experiencing.




As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.