I have a program p1 which calls 3 other program p2,p3,p4 using fetch return.
Program p1 passes some parameters to each of these other programs.
I want these value of these parameters after execution of fetch return.
How do i get these values from the other modules.Does fetch reTurn give you the value of the parameters passed after execution?
I have used the parameters as local in p2,p3 and p4.
I want this detail because I want to make changes only to p1 such that it applies to all the fecthing modules.
If I dont get these values passed back from p2,p3 and p4 then i’ll have to repeat the changes for every module (which I dont want to do).
Can some throw light on this.
Eg:
DEFINE DATA
LOCAL
01 #UPDATE-FLAG (L) INIT
END-DEFINE
.
.
.
FETCH RETURN P2-MODULE #UPDATE-FLAG#END-TIME
IF #UPDATE-FLAG =TRUE
PERFORM USAGE
ELSE
ESCAPE BOTTOM
END-IF
FETCH RETURN P3-MODULE #UPDATE-FLAG#END-TIME
(same code here)
IN P2
DEFINE DATA
LOCAL
01 #UPDATE-FLAG (L) INIT
END-DEFINE