View previous topic :: View next topic
|
Author |
Message |
padmalaya89
New User
Joined: 15 Jul 2005 Posts: 8 Location: krishnagiri
|
|
|
|
what is the significant of goback and stop run |
|
Back to top |
|
|
shreevamsi
Active User
Joined: 23 Feb 2006 Posts: 305 Location: Hyderabad,India
|
|
|
|
Hi Padma,
There is no difference in the function of STOP RUN or GOBACk if in a STANDALONE program. As soon the program executes, the control goes back to MVS.
But in case of Called program,
If Stop Run, the Control goes back to MVS which shouldn't be the case. where as for GoBack, the control goes to the Calling Program.
For the reason, we shouldn't code Stop Run for a Subroutine.
~Vamsi |
|
Back to top |
|
|
sivaram.ch
New User
Joined: 28 Jun 2005 Posts: 11
|
|
|
|
Exactly if u code GOBACK, control goes back to the calling pgm not to the Operating system.
Incase of STOPRUN control will be returned to the operating system.
That is why we used to code GOBACK in calling pgm makes control return to called one and STOPRUN to return the control to MVS in main pgm. |
|
Back to top |
|
|
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
Hi sivaram,
Can you please explain what's "calling pgm " means?
Call with 'CALL' or ' LINK' or 'XCTL', which will make GOBACK return to calling program? "CALL " and "LINK"? |
|
Back to top |
|
|
sungang77
New User
Joined: 03 Nov 2005 Posts: 46 Location: Shanghai, China
|
|
|
|
Another question.
If in a CICS program, I am confused with the following three,
1. 'EXEC CICS RETURN END-EXEC'
2. 'GOBACK'
3. 'STOPRUN |
|
Back to top |
|
|
harish_mf
New User
Joined: 31 Jul 2005 Posts: 18 Location: bangalore
|
|
|
|
hi,
return cics means it gives control where it comes from.
we don't use stop run in cics. we can eject in cics pgm. |
|
Back to top |
|
|
|