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 ELECTRICITY BILL: An electricity company supplies electricity to 4 types of customers coded 1, 2, 3 & 4.The rate schedule for customers is shown in one table as

Numeric -   Literals : The numeric literal can be created with the help of digits only. It can have a sign (+ or -) and can also have a decimal point. If no sign is specifi


DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

What is the difference b/w index and subscript? Subscript indicates to the array occurrence whereas index is the displacement (in no of bytes) from the beginning of the array.

single program how may when statement has used

LEVEL NUMBERS: The COBOL makes use of the level number concept to explain the hierarchical data structure. A level number is a 2 digit number. The permitted level numbers a

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

Sign - Picture clause: The numeric data item can be signed or unsigned. If a numeric data is regarded as unsigned then during the execution these unsigned data items are treat