IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

What is the significant of goback and stop run


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
padmalaya89

New User


Joined: 15 Jul 2005
Posts: 8
Location: krishnagiri

PostPosted: Fri Jul 14, 2006 8:51 am
Reply with quote

what is the significant of goback and stop run
Back to top
View user's profile Send private message
shreevamsi

Active User


Joined: 23 Feb 2006
Posts: 305
Location: Hyderabad,India

PostPosted: Fri Jul 14, 2006 9:52 am
Reply with quote

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
View user's profile Send private message
sivaram.ch

New User


Joined: 28 Jun 2005
Posts: 11

PostPosted: Fri Jul 14, 2006 11:17 am
Reply with quote

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
View user's profile Send private message
sungang77

New User


Joined: 03 Nov 2005
Posts: 46
Location: Shanghai, China

PostPosted: Sun Jul 23, 2006 4:06 pm
Reply with quote

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
View user's profile Send private message
sungang77

New User


Joined: 03 Nov 2005
Posts: 46
Location: Shanghai, China

PostPosted: Sun Jul 23, 2006 4:09 pm
Reply with quote

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
View user's profile Send private message
harish_mf

New User


Joined: 31 Jul 2005
Posts: 18
Location: bangalore

PostPosted: Thu Jul 27, 2006 2:56 pm
Reply with quote

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
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts How to stop a runaway CICS trans with... CICS 13
No new posts Query regarding STOP REGION XX ABDU... IMS DB/DC 11
This topic is locked: you cannot edit posts or make replies. Data Sets are files. Please stop str... JCL & VSAM 11
No new posts What will happen if we dont code STOP... COBOL Programming 4
No new posts Stop Process when file is empty DFSORT/ICETOOL 4
Search our Forums:

Back to Top