5,525 pts.
 Open files in ILE environment
We are having a discussion in our shop about the way the IBM i handles open files in an ILE Environment.  I would appreciate hearing your opinion of the following. 

The scenario:  Pgm A is compiled with DftActGrp(*No) ActGrp(*New).  This program open File X.

Pgm B is compiled with DftActGrp(*No) ActGrp(*Caller).  This program opens File Y.

Pgm A calls Pgm B.

One of our developers believes that when Pgm B ends with *INLR = *On and control results to Pgm A, that both File X and Y will be open because the programs are running in the same activation group.

I have tested this and found that after Pgm B ends, and control return to Pgm A, only File X is open.

Am I missing something here?



Software/Hardware used:
ASKED: April 18, 2011  10:10 PM
UPDATED: May 2, 2011  11:10 PM

Answer Wiki:
Last Wiki Answer Submitted:  Be the first to answer this question.
All Answer Wiki Contributors:  Be the first to answer this question.
To see all answers submitted to the Answer Wiki: View Answer History.


Discuss This Question:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _


 

Am I missing something here?

Not that I’m aware of. Try it with *INLR=*OFF. Then watch when Pgm A ends.

Tom

 108,135 pts.