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.

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 main 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

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 Between GOBACK and STOP RUN In Cobol

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.

Conclusion

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.

The use for some purposes is not allowed that was consistent with its object nature and therefore does cause confusion among readers.

It becomes difficult under many circumstances when there are many problems with words being used without expressing meaning, to allow people who might think they’ve read this book right.

The GOBACK statement is executed by controlling the runtime element in an exceeding program. This program executes similarly to an exit program using the GOBACK statement.

The GOBACK statement can be executed in a program without address. The address of the clause is not required. An exceeding program never controls the runtime element.

A stop-run statement has identical clauses can be executed using the GOBACK statement.

References

  1. https://ieeexplore.ieee.org/abstract/document/4812753/
  2. https://dl.acm.org/doi/pdf/10.1145/1010884.1010889
Search for "Ask Any Difference" on Google. Rate this post!
[Total: 0]
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 ♥️

Subscribe
Notify of
guest
0 Comments
Inline Feedbacks
View all comments