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
 

 

about STOP RUN and GO BACK

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

New User


Joined: 30 Jul 2004
Posts: 95

PostPosted: Sat Aug 28, 2004 11:54 am    Post subject: about STOP RUN and GO BACK
Reply with quote

suppose in the program if i give GO BACK instead of STOP RUN what will happens
Back to top
View user's profile Send private message

Ramya A

Active User


Joined: 26 Jul 2004
Posts: 104

PostPosted: Sat Aug 28, 2004 12:47 pm    Post subject:
Reply with quote

GOBACK statement ends the application if it is in the main program and returns to the calling program if it is in a called program.

STOP RUN just ends the application.

Quote:
GOBACK and STOP RUN performs similar operations when it is coded in the main program.


Guess your question is answered. icon_smile.gif
Back to top
View user's profile Send private message
karthi_ind

Active User


Joined: 24 Feb 2004
Posts: 131
Location: Chennai

PostPosted: Mon Sep 06, 2004 5:24 pm    Post subject:
Reply with quote

hi


Can anyone tell

Whatz the diff. between go back and exit program.

They both works similar (I thnk)

Thank u

Karthi
Back to top
View user's profile Send private message
Manabendra

New User


Joined: 09 Sep 2005
Posts: 1

PostPosted: Fri Sep 09, 2005 6:28 pm    Post subject:
Reply with quote

for a stand alone program, it has no difference.
But in a called program, for example : A program calls B program. in B program, if "stop run" is used, then it will not return to program A, instead it will return to the OS. That's why in a called program, STOP RUN is never used.
Back to top
View user's profile Send private message
anuradha

Active User


Joined: 06 Jan 2004
Posts: 247
Location: Hyderabad

PostPosted: Mon Sep 12, 2005 4:42 pm    Post subject:
Reply with quote

Hi karthi!

Quote:
Whatz the diff. between go back and exit program.


There is no difference between Goback and Exit program. Both works in a similar way if they were coded in the called program. Exit program/Goback is used to exit a program that has been called by another program.

But When Exit Program is coded in a stand alone program, Exit program is ignored and the process may continue. So it is always better to code GoBack in any kind of program (standalone/called program).

HTH,
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 CICS Roll back partially - Need to re... dwijadas CICS 4 Wed Nov 16, 2016 4:30 pm
No new posts Stop Process when file is empty Roland Brosio DFSORT/ICETOOL 4 Thu Jun 25, 2015 1:20 pm
No new posts Need a JCL to change the volume back ... Manikandesvaran D JCL & VSAM 10 Tue Oct 14, 2014 9:06 pm
No new posts Go Back (F3) has to be automized sakrat TSO/ISPF 7 Tue May 06, 2014 12:30 pm
No new posts Parse a String and divide it by 2 and... magesh23586 CLIST & REXX 6 Fri Feb 07, 2014 11:34 pm


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