Perform statement, COBOL Programming

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 as the range of the PERFORM statement. During the execution, when a PERFORM statement is encountered, a temporary departure from the general sequential execution takes place and the statements contained in the specified range are executed. Ahead execution of the statements, the control implicitly returns to the later statement following the PERFORM statement. It is too possible to get the statements in the range executed repeatedly for a particular number of times or until a condition is satisfied. The PERFORM is a powerful COBOL verb and has 5 various forms. 

The formats of a simple PERFORM statement is as shown below:

1728_PERFORM STATEMENT.png

The statement group starting with the first statement of the procedure named in procedure-name-1 and ending with the last statement of the procedure names in procedure-name-2, comprises the range consists of the statements contained in the procedure referred to by procedure-name-1. Whenever the simple PERFORM statement is executed, this range is executed just once. 

 

Posted Date: 10/17/2012 2:09:04 AM | Location : United States







Related Discussions:- Perform statement, Assignment Help, Ask Question on Perform statement, Get Answer, Expert's Help, Perform statement Discussions

Write discussion on Perform statement
Your posts are moderated
Related Questions
Evaluate is like a case statement & Evaluate  stamenet can be used to replace nested Ifs. The difference b/w EVALUATE and case is that there is no 'break' is required for EVALUATE

RULES FOR INDEXED TABLES: The rules of indexing a table with an INDEXED phrase are as shown below: (1) If indexing is completed for any one level of a table, then indexing

PROGRAM FOR SIMPLE PERFORM: We have to write a program to elaborate simple PERFORM statement Identification division. Program- id.  Perf1. Environment division. Da

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

FILE-CONTROL paragraph for the relative files: The normal format for the SELECT clause for a relative file is as shown below. SELECT  file-name  ASSIGN  TO  implementor-nam

CONDITION - COBOL Programming: The condition is an entity which at one point of time can have only one of the two values - true or false. As we already know that, the IF verb

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

SEQUENTIAL FILES:   The purpose of the proposed section is to introduce the concepts such as File characteristics, File Description for Fixed-Length Records, File-Control

, (Comma) : A comma, whenever used in a picture, is considered as an insertion character and inserted wherever it become visible. There can be more than one comma in the pictu

Illustration of simple sort verb: Illustration: Suppose that we have a card file with the following records description in the data division. The names of the work fil