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



%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

-=-=-=-=-=-=-=-=-=-=-=-=-=-





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.