|
Ummm... not unless they've changed the rules.
First off, OVRDBF POSITION(*START) has always seemed like a silly value to me. Where else would one expect it to begin processing?
Secondly, you don't have to use explicit open in order to effectuate your OVRDBF command.
Finally, as I said, reclaiming resources and issuing another read will cause the program to read FROM THE BEGINNING OF THE FILE. (If I didn't say it, I meant it.....)
The following snippet will read the FIRST three records in a file repeatedly until your power company finds out you haven't paid your bill:
DCLF FILENAME
LOOP: RCVF RCVF RCVF RCLRSC LVL(*CALLER) GOTO LOOP
(I know - I just tried it. Works at V5R1 anyway.)
Now, if your program reaches EOF, you're done, as Al pointed out earlier.
Dennis
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.