Jim Wiant wrote:
Program A eventually sets *INLR on when it exits.
But the file program B opened stays open.
Yes... that's what's supposed to happen. Setting on *INLR in program A
has nothing to do with program b. If you want program B's files to
close, you need to set on *INLR in program B!
Or you need to end the activation group.
If you compile Program A with ACTGRP(*NEW) and Program B with
ACTGRP(*CALLER) then when Program A ends, it'll automatically end the
activation group (which in turn will close down program B)
Thank you!
You've clarified both the issue and my confusion.
We've changed a few internal things (including our compiling options) -
thus, we're seeing things we haven't seen before.
I haven't proven your statement yet (I'm always the empiricist), but it
makes sense what your saying.
ACTGRP(*NEW) is the default now.
Program B needs to be ACTGRP(*CALLER) - and that will do it. (soon to be
proven :-)
Thanks again
Jim
This message has been sent from Foodstuffs (Auckland) Limited ("Foodstuffs").
The information contained in this message and or attachments
is intended only for the person or entity to which it is
addressed and may contain confidential and/or privileged
material. Any review, retransmission, dissemination or other
use of, or taking of any action in reliance upon, this
information by persons or entities other than the intended
recipient is prohibited. If you received this in error,
please contact the sender and delete the material from any
system and destroy any copies.
The views and opinions expressed in this message may be those
of the individual and not necessarily those of Foodstuffs,
and are not given or endorsed by it.
Please note that this communication does not designate an
information system for the purposes of the Electronic
Transactions Act 2002.
As an Amazon Associate we earn from qualifying purchases.