What is the difference between GOBACK and STOP RUN in COBOL? - ProProfs Discuss
Advertisement

What is the difference between GOBACK and STOP RUN in COBOL?

What is the difference between GOBACK and STOP RUN in COBOL?

Change Image    Delete

Asked by Jessica , Last updated: Dec 02, 2024

+ Answer
Request
Question menu
Vote up Vote down

3 Answers

T. Lopez

T. Lopez

Let's see how far my knowledge stretches

T. Lopez
T. Lopez, Biology student, Graduation, Detroit

Answered Dec 02, 2020


STOP RUN and GO BACK are related to COBOL Programming, which is a programming language that many businesses use. Sometimes, these two terms are mistaken for one another, but there are many differences between them. GO BACK is the end of the COBOL program.

This term is used to exit a subprogram. Using this term gives the operating system control. STOP RUN is used to terminate the entire program. It deletes all the programs in the unit. Another term that COBOL uses is STOPWATCH, which is used to return it back to the operating system and is used in main programs.

upvote downvote
Reply 

G. Tanaka

G. Tanaka

Who deals with teeth problems and fix them

G. Tanaka
G. Tanaka, Dentist, MDS, Liverpool

Answered Jul 09, 2020

GO BACK and STOP are known to be two terms that are used in COBOL Programming. GO BACK is known to be a statement that can be used to describe the logical end of the program. When you use STOP RUN, this means that that program will be terminated.

STOP RUN will also make it possible to delete the different programs that are related to the run unit. Just remember that using STOP RUN does not mean that the whole program will be deleted.

It only means that the links that are used in order to edit the program will be removed. All of the other statements that will be given after the STOP RUN will be used by the COBOL program.

upvote downvote
Reply 

M. Klose

M. Klose

M. Klose
M. Klose, Content Writer, Oakland

Answered Jul 08, 2020

STOP RUN and GO BACK are similar and common terms in COBOL programming. People mistake one term for the other. GO BACK is refers to the logical end of a program in COBOL, it is used in both main and subprograms, which functions as an exit program in the subprogram.

GO BACK gives control back to either the Operating system and main program while STOP RUN, as the name implies, completely terminate the program itself; it deletes all dynamically associated programs in the run unit.

STOPWATCH is used in main programs. Only it returns OS when executed. Statement following the STOP RUN is not executed while a statement following GO BACK execution results in the statement being executed.

upvote downvote
Reply 

Advertisement
Advertisement
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader
Image Preview
Search for Google images Google Image Icon
Select a recommended image
Upload from your computer Loader

Email Sent
We have sent an email to your address "" with instructions to reset your password.