|
Juan Robledo wrote: > > Hello all, > How can i reset %EOF?? I am on V4R4. I am using a DoW loop. I am doing > a setll but it does seem to reset the %EOF. > any ideas? Juan, in V5R1, a change was made so that a successful SETLL sets %EOF(file) to off. (It doesn't affect %EOF with no parameter). Same for SETGT and CHAIN. Others have already made good suggestions for other ways to code this, but to get around the problem in V4R4, you can code this way, since the file status will be something like 00010 and 00011 for not-found and eof. c setll file c dow %status(file) = 0 c reade file c whatever c enddo Same thing works for a CHAIN/READE loop: c chain file c dow %status(file) = 0 c whatever c reade file c enddo Barbara
As an Amazon Associate we earn from qualifying purchases.
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.