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?
April 18, 2011 10:10 PM
May 2, 2011 11:10 PM