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

FILE UPDATION: The method of modifying an old file with present information is termed as file updating. Master file: A master file is a file which is used as an author

Size: The number of characters or digits needed to store the data item in the memory in termed as the Size of the data item. All the 4 general characteristics explained can

The LENDER Bank offers mortgages on homes valued up to $500,000. The required down payment is calculated as follows: 4% of the first $60,000 borrowed 8% of the next $30,000 borro

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

Example of Open statement: Illustration: The OPEN INPUT TRANSACTION, OLD-MASTER OUTPUT NEW-MASTER. The illustration represents that there are two input files named the

Object-Computer - Configuration section: The computer name specifies a specific computer on which the object program is to be executed. The MEMORY SIZE is used to show the

REWRITE STATEMENT: The REWRITE statement has the format for a relative file as shown below, REWRITE record-name  [ FORM identifier ]

Buffers: The Modern computers are able of handling I-O operations independent of the CPU by means of the hardware termed as data channel. For illustration, if two buffers a