Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Difference bw STOP RUN and GOBACK

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> COBOL Programming
View previous topic :: :: View next topic  
Author Message
M.Bhavani Prasad

New User


Joined: 10 Mar 2006
Posts: 6
Location: Hyderabad

PostPosted: Fri Mar 10, 2006 1:23 pm    Post subject: Difference bw STOP RUN and GOBACK
Reply with quote

Difference between STOP RUN and GOBACK in COBOL
Back to top
View user's profile Send private message

Rupesh.Kothari

Member of the Month


Joined: 27 Apr 2005
Posts: 464

PostPosted: Fri Mar 10, 2006 2:15 pm    Post subject: Re: Difference between STOP RUN and GOBACK
Reply with quote

Hi

Quote:
Difference between STOP RUN and GOBACK


This topic already discussed so many times in forum, Please make search .

Regards
Rupesh
Back to top
View user's profile Send private message
mfjude

New User


Joined: 09 Jan 2006
Posts: 20

PostPosted: Fri Mar 10, 2006 3:06 pm    Post subject: Re: Difference between STOP RUN and GOBACK
Reply with quote

to my knowledge "stop run" returns control to the runtime environ. while 'goback' returns control to the calling pgm...
Back to top
View user's profile Send private message
KS

New User


Joined: 28 Feb 2006
Posts: 91
Location: Chennai

PostPosted: Wed Mar 22, 2006 1:04 pm    Post subject:
Reply with quote

Hi,

STOP RUN terminates the run unit,and deletes all dynamically called
programs in the run unit and all programs link-edited with them. (It
does not delete the main program.)STOP RUN statement does not have to be the last statement in a sequence, but the statements following the STOP RUN will not be executed.STOP RUN statement closes all files defined in any of the programs

GOBACK
statement specifies the logical end of a called program or invoked method.Should appear as the only statement or as the last of a
series of imperative statements in a sentence because any statements following theGOBACK are not executed.

Thanks,
KS
Back to top
View user's profile Send private message
ASHISH GOTTLIEB

New User


Joined: 08 Apr 2006
Posts: 1
Location: PUNE

PostPosted: Mon Apr 10, 2006 10:48 pm    Post subject: Re: Difference between STOP RUN and GOBACK
Reply with quote

IN COBOL PROGRAMMING IF YOU PUT STOP RUN AFTER ANY SENTENCE THEN THE CONTROL COMES OUT OF PROGRAM AND IN CASE OF GO TO CONTROL WILL PASS TO THE STATEMENT SPECIFIED IN THE GO TO STATEMENT

STOP RUN can only be used in the main program. When executed, it returns back to OS.
GOBACK can be used both in the main program and in a sub program.
GOBACK returns controls either back to the main program or to the OS.
Any statement following the GOBACK execution results in the subsequent statements not being executed.
Statements following STOP RUN are also not executed.
GOBACK in the sub program functions as an exit program.
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 Difference between TWALENG and TWASIZE Arunkumar Chandrasekaran CICS 3 Tue Jan 03, 2017 12:57 pm
No new posts Sticky: difference between ... DUMMY ... and ... enrico-sorichetti JCL & VSAM 0 Mon Oct 17, 2016 4:31 pm
No new posts Difference space showed for TS and it... autobox DB2 1 Thu Apr 14, 2016 1:07 pm
No new posts Difference Between CICS WebSupport an... sachinji84 CICS 1 Mon Mar 07, 2016 7:25 pm
No new posts Difference between -180 and -181 with... deepak_shrivastava DB2 4 Wed Jan 06, 2016 10:00 am


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us