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



Hi Rick -

That would work, but I was already passing a parm that told me which file
was being processed, so I just defined both files and did if/else logic for
all the i/o.
IMO that's the best way to do it.

OVRDBF LVLCHK(*NO) is an accident looking for a place to happen.  Some of
the other suggestions didn't have any particular vulnerabilities but would
be confusing to someone else trying to figure what is happening.  If/else
probably eliminates the need for any overrides, particularly eliminates
LVLCHK(*NO), eliminates the need to create tricky logicals, and is obvious
to anyone looking at the program.  I would imagine that you can spare the
extra milliseconds of run time because of the IF processing.

The only suggestion I would have, which you may have already done, is to
make the two files USROPN and only open the one that you are going to use.

Ken
Opinions expressed are my own and do not necessarily represent the views of
my employer or anyone in their right mind.



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.