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



Rob

This would be better served by using a data area.

check out the IN and OUT rpg opcodes

if you insist on using a file, make it 'unkeyed' (no k in the 'f' spec) and
chain to it with a literal 1 (by reletive record number)

c       1                      chain         yourfile
c                               if                %found
yadda yadda
c

Rick

----original message-------
HI I have a file that contains a one record only, one field in fact that is
a running number that users will get a display of this number, approve, and
then the next number will be displayed and updated. Then within the same
program they can go and get a new next number. I am unsure of the file
aspect. I am doing a Read each time with LR for EOF. Is there going to be
Open file status and should this file be closed each time? The file is not
keyed.
Thank you,
Rob



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.