× 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.



Likely do to RPG buffering output...

Charles

On Wed, Mar 15, 2017 at 7:32 AM, Jim Hawkins <jhawkins@xxxxxxxxxxxx> wrote:



We had a program blow up this morning with error code CPF5004. Looking at
the dump, I see that it indicates "Printer overflow line detected for
file".
The external overflow line is set to 60. The last line printed on the
report
was 47. This particular program uses a printer file information data
structure to determine the line number (I don't recall ever seeing this
before, and didn't know it could be done). The dump shows this to be at 60
at the time of the error. There is code in the program that indicates if
currentline >60 print the header. And I can quickly fix (and likely need to
since the report has the overflow at 60) by changing the > to >=.

The report was changed recently to include more data in the report, so it
may be that this is the first time it has exceeded a single page.

Here is my question: why was the currentline at 60 (from the printer file
INFDS) instead of 48?







Regards,



Jim Hawkins

Programmer Analyst

Interkal LLC

Kalamazoo, MI



--
This is the RPG programming on the IBM i (AS/400 and iSeries) (RPG400-L)
mailing list
To post a message email: RPG400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/rpg400-l
or email: RPG400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/rpg400-l.

Please contact support@xxxxxxxxxxxx for any subscription related
questions.

Help support midrange.com by shopping at amazon.com with our affiliate
link: http://amzn.to/2dEadiD


As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

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.