When PGMA calls PGMB for the first time PGMB executes the
*INZSR. PGMB uses the RETRN operation to return to PGMA.
When PGMA call PGMB the second time is the *INZSR executed?

Answers were Sorted based on User's Feedback



When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation ..

Answer / anuj

No, on second call *INZSR will not be executed. If PGMB use
INLR to go back to PGMA then only *INZSR will be get
executed in second call.

Is This Answer Correct ?    22 Yes 1 No

When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation ..

Answer / raj

Hi anuj..what is that INLR can explain that...

Is This Answer Correct ?    0 Yes 0 No

When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation ..

Answer / jo

I tried and 2nd time *inzsr was not executed.

Is This Answer Correct ?    0 Yes 0 No

When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation ..

Answer / jayvardhan

If you specify RETRN in called program, the *INZSR will not execute again.

Is This Answer Correct ?    0 Yes 0 No

When PGMA calls PGMB for the first time PGMB executes the *INZSR. PGMB uses the RETRN operation ..

Answer / khadam sheikh

Yes. Whenever PGMB is called *INZSR is executed first.

Is This Answer Correct ?    0 Yes 11 No

Post New Answer

More RPG400 Interview Questions

I know chain keyword retreive records randomly but how chain keyword exactly works internally????

4 Answers  


How do you know if a record exists without doing a READ and CHAIN?

6 Answers   IBM,


How to declare the more than one file in cl/400.

13 Answers   IBM,


Q:Hi all,i want accurate answer with code using in built functions.please sent me code as soon as posible. I have program nmed PGM1 which '' RETRIEVE Current production date''should correctly default the production date for the user who is issuing raw materials to the manufacturing.The production date can be different from the celendra date. However, the program does not make the correct adjustment for all manufacturing plants. there is a parameter which determines the production start time e.g. 07:00 if the system time precedes this,the program subtracts one from the celendra day.This work fine when the celendar day starts after production day as it does in England,the system should be adding one to the celendar day during the overlap. unfortunately the program was desined to assumed the celendar day always starts before the production day. Change required in the program: Change the PROGRAM PGM1 to use the new parrameter to decide whether to add or subtract 1 from the celendar day when determining the production date.

0 Answers   TCS,


i'm working on progA , in that program i want to see the userids of the users who work on this program?

10 Answers   Four soft,






Can more than one subfile record be displayed on one line?

7 Answers   IBM,


what is plat file?

6 Answers   Indian Infotech,


how to change the length of the field in a physicalfile?

12 Answers  


How would display prime numbers using CL program?

0 Answers   Hexaware,


When it is desirable to describe files Internally?

0 Answers  


How do you find out whether a record is present in the physical file without reading the file? for Example Employee No: 100 in an Employee master.How do we find out whther 100 is present in Employee master without reading the file?

11 Answers   Bank Of America, CSC, IBM,


How to find d key field of a pf that doesn’t have source physical file?

2 Answers  


Categories