|
openfiles();
dow (xxx);
...
action();
...
enddo;
closeFiles();
The only thing that I do different is that I do not use an open file. I simply do a %Open in the program, and if the file is not open, I open it. You can, also, just use a logical flag and if Not True, open your files. The only other way I know to handle closes is to hook an activation group ending and when you see this, close the files.
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.