STOP RUN has to be used in the mainprogram only ..but instead of STOP RUN if i use EXIT PROGRAM will that be accepted or not will it lead to any abend.
In the same way the EXIT PROGRAM command has to used only in the called program . But instead of that if you use STOP RUN will it be accepted . If accepted will be control will go back to the main program or the o/s . one more on this , i would like to know whether the values of variables which were passed from the main program to the sub program will be reflected in the main program if the coded as STOP RUN in the sub program .
Joined: 08 Jan 2006 Posts: 22 Location: UNITED KINGDOM
case1}}}:--when u se stop run in main prg control goes to system...if u se exit program it will give an error and prog will go in loop ...ya but when u use goback it gives the same result as stop run
cas2}}}:---when u use stop run in the sub prog how will it give control to the mainprg so as result u'll not get the desired result..
but when u use exit prg as well as goback proper linkage with the main prg happens..
i think i gave you the requisite answer,,,,,plz do let know if i m wrong and update me...
thanks and rgds