Open files in ILE environment

6510 pts.
Tags:
Activation Groups
IBM i
ILE
ILE RPG
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?

Answer Wiki

Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Discuss This Question: 1  Reply

 
There was an error processing your information. Please try again later.
Thanks. We'll let you know when a new response is added.
Send me notifications when members answer or reply to this question.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy
  • TomLiotta
    Am I missing something here? Not that I'm aware of. Try it with *INLR=*OFF. Then watch when Pgm A ends. Tom
    125,585 pointsBadges:
    report

Forgot Password

No problem! Submit your e-mail address below. We'll send you an e-mail containing your password.

Your password has been sent to:

To follow this tag...

There was an error processing your information. Please try again later.

REGISTER or login:

Forgot Password?
By submitting you agree to receive email from TechTarget and its partners. If you reside outside of the United States, you consent to having your personal data transferred to and processed in the United States. Privacy

Thanks! We'll email you when relevant content is added and updated.

Following