Perform with times option, COBOL Programming

PERFORM WITH TIMES OPTION:

The format of a PERFORM TIMES statement is as shown below:

Illustration:  

A)  Perform the para-2 5 times.

In this situation the specified para-2 will be constantly executed 5 times.

 B)  Perform the para-2 through para-5 n times.

In this situation the specified range of all the paragraphs from para-2 to para-5 will be constantly executed n times. Note that the value of n must be available before this statement gets executed.

1995_PERFORM WITH TIMES OPTION.png

Posted Date: 10/17/2012 2:13:05 AM | Location : United States







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

Write discussion on Perform with times option
Your posts are moderated
Related Questions
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

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

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

DATA RECORD CLAUSE: The DATA RECORD clause, documents the record names defined for the file. For illustration, DATA RECORDS ARE REC-1, REC-2, REC-3 that means there are 3diffe

PROGRAM FOR PERFORM - VARYING: We have to write a program to elaborate PERFORM ...VARYING Identification division. Program- id. PerfVary. Environment division. Dat

Example of Sign condition: The illustration below describes the use of the sign condition. Illustration:     77  BALANCE  PIC  S9 (6) V99.       .       .     I

PROGRAM FOR IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

Program for Sequential File Creation & Rewriting  We have to write a program to create a Length file with just two fields: l (Length) and l-c (Length-Code). Add a few records.

START STATEMENT: The START statement places the files to the initial logical record whose record key satisfies the condition specified by the KEY phrase. The access mode shoul