Difference Between GOBACK and STOP RUN In Cobol

A GOBACK statement never goes hand in hand with a declarative procedure specified. Stop run’s ideal use is for Main programs or Stand-alone programs, but it will be utilized in Subprograms further where it returns control to OS.

/10

IT Quiz

Test your knowledge about topics related to technology

1 / 10

Which two websites offer free e-mail services?

2 / 10

WWW Stands for

3 / 10

Android is -

4 / 10

'.BAK' extension usually refers to what kind of file?

5 / 10

Geo-stationary satellite revolves at –

6 / 10

'.MOV' extension usually refers to what kind of file?

7 / 10

The core idea of develop AI is bulding machines and alogrithms to

8 / 10

While making the text bold in Word, what do you need to do first?

9 / 10

The output printed by a computer through a printer on the paper is called

10 / 10

When a machine possesses the ability to mimic human traits like make decisions, predict the future, learn and improve on its own said to have

Your score is

0%

Go-backs are often employed in both Main and subprograms. It works like a stop run in main modules and submodules; it gives control to main programs.

GOBACK vs STOP RUN In Cobol

The difference between GOBACK and Stop Run is that GOBACK is used to indicate the logical end, but stop run is used to terminate the running program. Go back can be easily used in many modules, but stop run cannot be used in the main module. Go back just changes the status of the file, but stop-run permanently delete the file.

GOBACK vs STOP RUN In Cobol

Want to save this article for later? Click the heart in the bottom right corner to save to your own articles box!

Go back is a statement that refers to the logical end of a given program in COBOL.

While its usage can be regarded as confusing, it makes no distinction between an absolute termination and being discarded (elements are deleted).

In contrast with this type of definition, the second value declared has two parameters.

Stop Running, all the programs that are dynamically allocated are also deleted from the run unit. Because it gives the control back to the OS, it’s advised to use only in Main modules.

Not recommended to use in Sub-programs because it gives control back to OS where the sub-program is supposed to send control back to its main module.

Comparison Table

Parameters Of ComparisonGO BACK In CobolSTOP RUN In Cobol
Used forLogical endProgram termination
Control BackYesNo
ModulesManyMain
FunctionChanges status of the fileDeletes all the file
SubmodulesYesNo
Runtime environmentYesNo

What is Go Back In Cobol?

A GOBACK statement comes after imperative statements or usage of the only statement, in an exceeding sentence because statements following the GOBACK statement don’t seem to be executed.

This allows for variable access control-based operations like CIL.

The parameters of an array are literal, and its result or output on success or failure (or both) while elements without such assignment remain unchanged. Go back statement.

The above code looks correct because there is no need for any special case declaration within each subroutine; this isn’t true in all cases either.

In some programs where custom routines have been defined as such, or with variable name names not preceded by’-, ‘you can skip over one rather than another pair and still get it executed correctly using automatic evaluation when evaluating functions declared inside a variable.

The GOBACK statement ends after an additional code than the equivalent exit program as a result stops the run statement.

A GOBACK statement must not be executed while executing a declarative procedure. Go-backs are often employed in both Main and subprograms.

What is Stop Run In Cobol?

As the name implies, it stops the execution of the program and offers control back to the OS.

With stop run, all the programs that are dynamically allocated also are deleted from the run unit.

Because it gives the control back to the OS, it’s advised to use only in Main modules.

Not recommended to use in Sub-programs because it gives control back to OS where the sub-program is meant to send control back to its main module.

It also closes all the files related to the run unit. Because the name implies, it stops the execution of the program and offers control back to the OS.

It also closes all the files related to the run unit.

This is not a decent practice as there have been many examples like CVS versions that started using JAVA executable binaries with no problem on Ubuntu Server 14 by default, but why can’t they be developed, so other users haven’t got this same problem too?

I believe again one should ask them if their version has done better when running with Java Runtime Environment (JRE), which supports shared object file formats – like Microsoft Visual Studio or Google Code Compilation Tools.

Stop-run deletes the files, and it can’t be employed in most modules. It works in submodules.

Main Differences Between GOBACK and STOP RUN In Cobol

  1. Go back is used to show the logical end, but stop-run is used for program termination.
  2. Go back gives control back, but stopping running does not give control back.
  3. Go back can be used in many modules, but stop run can be used only in the main module.
  4. Go back changes the status of the file in the run unit, but stop-run deletes the file in the run unit.
  5. Go back can be used in sub-modules, but stop run cannot be used in sub-modules.
  6. Go back is controlled by the runtime element, but stop run is not controlled by the runtime environment.
References
  1. https://ieeexplore.ieee.org/abstract/document/4812753/
  2. https://dl.acm.org/doi/pdf/10.1145/1010884.1010889
One request?

I’ve put so much effort writing this blog post to provide value to you. It’ll be very helpful for me, if you consider sharing it on social media or with your friends/family. SHARING IS ♥️

Leave a Comment

Your email address will not be published. Required fields are marked *