285 pts.
 Activation Group
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

Software/Hardware used:
ASKED: November 14, 2007  1:06 PM
UPDATED: October 29, 2009  12:21 AM

Answer Wiki:
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
Last Wiki Answer Submitted:  October 29, 2009  12:21 am  by  TomLiotta   108,055 pts.
All Answer Wiki Contributors:  TomLiotta   108,055 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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