Activation Group

295 pts.
Tags:
AS/400
RPG
I have 3 programs - A, B and C. A calls B and B calls C. A is activated i activation group- AC1. Where as B has *CALLER value in ACTGRP field. C is activated in AC2. All the three programs end with *INLR = *Off. Now after returning to command line from program A, I fire command - RCLACTGRP (AC1) Now in this scenario which program will be active in Call Stack or none of them will e active? Why? Thank You

Answer Wiki

Thanks. We'll let you know when a new response is added.

Any programs that are still running will be in the call stack.

However, your question implies that the CALL to A was done from a command line and that A had ended, therefore returning to the command line. Any program that ends is removed from the call stack — that’s one of the effects of ending. It doesn’t matter if the program ends with *INLR on or off. The LR indicator has no connection to the removal of a call stack entry.

Your description directly implies that none of your programs are still running, so none can be on the call stack.

Your question is probably about whether or not any activation group still exists. The AC2 activation group has been activated and it remains. No program from AC2 is on the call stack. If program C is called again, the AC2 activation group will not have to be recreated by the system.

Tom

Discuss This Question:  

 
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

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