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
Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

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

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

Occurs Clause: Let us establish tables with the help of an illustration. Assume that there are ten different types of income-tax rates that are read from some input medium and

Illustration of perform statement: PERFORM    CALCUALTE-TAX. In this illustration, the CALCULATE-TAX is either a section name or paragraph name. Assume that it is a section

PROGRAM FOR IF -ELSE: We have to write a program to check whether the given number is ODD or EVEN. You can use IF..ELSE. Identification division. Program- id. IfElse.

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

Selection of file Organization: While designing a file, the programmer should select an appropriate association for a file. The order in which the choice is to be made is as s

RELATIVE FILES: The Files that are stored on a direct access storage medium like magnetic disk are frequently known as direct access files. The COBOL supports three different

ADD and SUBTRACT CORRESPONDING: The CORRESPONDING option can also used with the ADD and SUBTRACT verbs. The following are some of the formats of these verbs with the CORRESPON