Go to, stop run verb, COBOL Programming

GO TO, STOP RUN:

The GO TO verb is used to completely transfer the control to elsewhere in the program.

Its form is as shown below:

GO TO procedure-name

As a result of the execution of the above statement, the control is transferred to the first statement of the paragraph or part mentioned in the process name.

Illustration:

  GO TO ERROR-ROUTINE

Assume that the ERROR-ROUTINE is a paragraph name.  The execution of the above statement will transfer the control to the initial statement in the ERROR-ROUTINE. On another hand, assume that the ERROR-ROUTINE is a section name and the FIRST-PARA is the name of the first paragraph in this section.  In the situation control will be transferred to the first statement in the FIRST-PARA. It may be noted that the GO TO FIRST-PARA is similar to the GO TO ERROR-ROUTINE. 

STOP RUN

This verb causes the extinction of the execution of the object program.  Its form is as shown below:

            STOP   RUN  

 

Posted Date: 10/16/2012 6:10:11 AM | Location : United States







Related Discussions:- Go to, stop run verb, Assignment Help, Ask Question on Go to, stop run verb, Get Answer, Expert's Help, Go to, stop run verb Discussions

Write discussion on Go to, stop run verb
Your posts are moderated
Related Questions
PROGRAM FOR MOVE CORRESPONDING: We have to write a simple program to demonstrate Move Corresponding. identification division.   program- id.   environment division.

OCCURS CLAUSE - PROGRAM: We have to write a program to elaborate occurs clause. Get names and marks of the students and show them on the screen.   identification division.

SEARCH VERB: The SEARCH verb is used to position elements in one-dimensional tables. Let us consider the following problem. Assume that each element of a table consists of thr

PERFORM STATEMENT:   The PERFORM statement can be used to execute the group of consecutive statements written elsewhere in the program. We refer to this group of statements a

PROGRAMS FOR REDEFINES CLAUSE: We have to write a simple program to explain the REDEFINES clause at 01 level. identification division. program- id. Redef. environment

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

Non numeric: The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum

PROGRAM FOR MULTIPLY VERB: We have to write a simple program to elaborate MULTIPLY verb. You can also use the edit characters in the program. Identification division. Pr

Illustration of Search verb: To illustrate the other use of SEARCH verb, assume we wish to search the similar tab to find the number of persons whose deposited amount is more

single program how may when statement has used