Portal | Manuals | References | Downloads | Info | Programs | JCLs | Mainframe wiki | Quick Ref
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Profile Log in to check your private messages Log in
 
What is the significant of goback and stop run

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
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    Post subject: What is the significant of goback and stop run
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    Post subject: Re: What is the significant of goback and stop run
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    Post subject:
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    Post subject:
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    Post subject:
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    Post subject:
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    IBMMAINFRAMES.com Support Forums -> COBOL Programming All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts Stop Process when file is empty Roland Brosio DFSORT/ICETOOL 4 Thu Jun 25, 2015 1:20 pm
No new posts Urgent Issue: Stop the execution of R... ezhavendhan TSO/ISPF 3 Mon Aug 26, 2013 5:21 pm
No new posts Stop reading input file based on a co... David Sde DFSORT/ICETOOL 9 Fri Feb 22, 2013 1:10 am
No new posts GOBACK/COMMIT with a called proram - ... Sysaron DB2 2 Thu Dec 01, 2011 3:54 am
No new posts STOP RUN without commit, sqlcode=0000... toughhou COBOL Programming 5 Sat Aug 13, 2011 3:26 pm

Facebook
Back to Top
 
Job Vacancies | Forum Rules | Bookmarks | Subscriptions | FAQ | Polls | Contact Us