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



Dane you can remedy this issue by going ahead and adding the FSPEC
OFLIND(indicator).  You don't have to use the indicator, but it will
prevent the error message from occurring (If I recall correctly).  The
other option was suggested that you change SPACEB to SPACEA.

Michael Schutte



                                                                           
             "Dane Cox"                                                    
             <DCox@xxxxxxxxxxx                                             
             om>                                                        To 
             Sent by:                  "RPG programming on the AS400 /     
             rpg400-l-bounces+         iSeries" <rpg400-l@xxxxxxxxxxxx>    
             michael_schutte=b                                          cc 
             obevans.com@midra                                             
             nge.com                                               Subject 
                                       RE: Printer File Overflow...        
                                                                           
             05/04/2006 08:50                                              
             AM                                                            
                                                                           
                                                                           
             Please respond to                                             
              RPG programming                                              
              on the AS400 /                                               
                  iSeries                                                  
             <rpg400-l@midrang                                             
                  e.com>                                                   
                                                                           
                                                                           




I understand all of that.  But, the whole point of the question was not
about using the overflow indicator to control paging.  I am handling
that by limiting the number of lines I print per page.  This isn't
something I really have a choice on.  I am just trying to figure out why
the existing code is bombing when I try and print on the overflow line.
A redesign at this point is not an option.

I just thought I was missing something obvious and that someone might
know why I can't print on the overflow line without error?

-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Lim Hock-Chai
Sent: Wednesday, May 03, 2006 5:06 PM
To: RPG programming on the AS400 / iSeries
Subject: RE: Printer File Overflow...

You shouldn't have to have to keep track of the line # that you are
printing.  That is what overflow is for.
Just make sure that the detail record format does have more than "page
length - overflow line + 1" lines.

In you program, simply do:

If overflowed
Write heading
Eval overflowed = *off
Endif

Write(e) detail
Eval overflowed = %error


--
This is the RPG programming on the AS400 / 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.




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.