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

about STOP RUN and GO BACK


IBM Mainframe Forums -> COBOL Programming
Post new topic   Reply to topic
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
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
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
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
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
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 View Bookmarks
All times are GMT + 6 Hours
Forum Index -> COBOL Programming

 


Similar Topics
Topic Forum Replies
No new posts Issues Converting From ZD to Signed N... DFSORT/ICETOOL 4
No new posts Back Page print direction (Duplex Pri... JCL & VSAM 3
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
Search our Forums:

Back to Top