65 pts.
 INZSR with RETURN & INLR
Hi There, How INZSR will work with RETURN & *inLR *ON.
1:->I mean Pgm A is calling Pgm B.Pgm B is using INZSR & RETURN .So how INZSR  will work during the 2nd call to PgmB .I mean when Pgm B got called 2nd time then control will pass to INZSR or Not?
2:->Pgm A is calling Pgm B.Pgm B is using INZSR & *inLr = *On.Then for the 2nd call to Pgm B .INZSR will be call or Not?


Software/Hardware used:
ASKED: October 5, 2011  7:29 AM
UPDATED: March 31, 2012  12:37 AM

Answer Wiki:
This question was just asked and answered. http://itknowledgeexchange.techtarget.com/itanswers/inzsr/
Last Wiki Answer Submitted:  October 5, 2011  12:43 pm  by  CharlieBrowne   32,835 pts.
All Answer Wiki Contributors:  CharlieBrowne   32,835 pts.
To see all answers submitted to the Answer Wiki: View Answer History.


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


 

I tried this once . . . turning on *INLR in the *INZSR subroutine.

The program ended after executing the *INZSR subroutine. No other code was executed.

I moved the code that turned on *INLR outside *INZSR and the program worked.

 5,525 pts.

 

Hi Pankaj,
For your question the answers will be like this.

1. INZSR will not get executed as u used return
2. INZSR will get executed as program teminated through LR

 285 pts.