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



For a chain you should be checking %found not %eof... 


Thanks,
Tommy Holden


-----Original Message-----
From: rpg400-l-bounces@xxxxxxxxxxxx
[mailto:rpg400-l-bounces@xxxxxxxxxxxx] On Behalf Of Jerry Adams
Sent: Monday, October 03, 2005 11:52 AM
To: RPG programming on the AS400 / iSeries
Subject: Re: Printing from a Subfile

%eof( ) is for a READ op.  I don't see any READ. 

        * Jerry C. Adams
*iSeries/i5 Programmer/Analyst
B&W Wholesale Distributors, Inc.* *
voice
        615.893.8633x152
fax
        615.995.1201
email
        jerry@xxxxxxxxxxxxxxx <mailto:jerry@xxxxxxxxxxxxxxx>



Brian Piotrowski wrote:

>Hi All,
>
> 
>
>I'm having a brain-freeze today.... How do I print from a subfile?  So 
>far in my code I have (KDSDATA is the name of the subfile):
>
> 
>
>Write heading;
>
>Rrn = 1;
>
>DoW not %eof(kdsdata);
>
>Chain Rrn Kdsdata;
>
>If prtoverflow;
>
>  Write heading;
>
>  Prtoverflow = *Off;
>
>Endif;
>
>Write detail;
>
>Rrn = Rrn + 1;
>
>Enddo;
>
>Write Footer;
>
> 
>
>But the compiler is giving me grief with the %EOF() statement.  I now 
>know it is because the KDSDATA is not really a file, but a record.  Is 
>there such thing as "end of recordset", or am I going about this wrong?
>
> 
>
>Any ideas?
>
> 
>
>Thanks!
>
>
>Brian.
>
> 
>
> 
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
>Brian Piotrowski
>
>Specialist - I.T.
>
>Simcoe Parts Service, Inc.
>
>Ph: 705-435-7814 x343
>
>Fx: 705-435-6746
>
>bpiotrowski@xxxxxxxxxxxxxxx
>
>-=-=-=-=-=-=-=-=-=-=-=-=-=-
>
> 
>
>  
>

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


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.