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
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.
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