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



I'm thinking the 'file open' flag is superfluous. You'd open the needed
file if "not %open(file_name)" is true. And you don't even have to test
for %open before closing it, since the manual says you won't get an error
if you attempt to close an already closed file.

Arthur J. Marino
Southern Container Corporation
(631) 297 - 2276



rob@xxxxxxxxx
Sent by: rpg400-l-bounces@xxxxxxxxxxxx
03/20/2008 12:07 PM
Please respond to
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>


To
RPG programming on the AS400 / iSeries <rpg400-l@xxxxxxxxxxxx>
cc

Subject
Re: RPG-ILE Service Pgm and Opening/Closing Files






I think his question was why not just do a
if %open(myfile);
close myfile;

instead of
open myfile;
myfileOpen=*on;
...
if myfileOpen;
close myfile;

I wondered the same thing. And assumed it had something to do with the
thread and multiple stuff...

Rob Berendt

As an Amazon Associate we earn from qualifying purchases.

This thread ...

Follow-Ups:
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.