|
Hello all...service
We're trying to put together a set of procedures to be called as
programs for the first time and as would be expected, we've got ourfirst
quandry.wrong),
My understanding of service programs (and please correct me if I'm
is that because the modules have the "nomain" option, that files thatare
originally opened when the procedure is called must be subsequentlythis
closed, either by the "close" command or the LR indicator and that if
is not done then the file can be opened repeatedly each time theprocedure
is called.pass
The question that has arisen is that in one case a program is being
adjusted to use a service program. This service program, for examples
sake, will open File A and retrieve some company reference data and
it back to the program that wanted it. The service program is used ina
number of different programs, but one of these programs also callsFile
for different reasons and does not have any kind of programmercontrolled
open or close logic on it - the file opens when the program starts andhappen
closes when it ends (LR=*on). The developer is asking what would
if the service program, which has opened File A, then forces a fileclose.
My assumption is that it would only close the file instance that thethe
procedure opened, and not file instance that was originally opened in
calling program.
Any help would be appreciated.
Have a good day.
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.