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
OCCURS CLAUSE - PROGRAM: We have to write a program to demonstrate the occurs clause. Get names of the students and show them on the screen.  identification division.

Illustration of Renames clause: In the illustration, PAT-OTHER-THAN-BASIC will become a fresh group consisting of DEARNESS-ALLOWANCE, HOUSE-RENT & MTHLY-INCENTIVE. Keep in min

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene

ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum.  The ADD verb takes any one of the two forms as shown below:

Data types available in COBOL are given below Alpha-numeric (X), numeric (9), alphabetic (A)

Non numeric: The nonnumeric literal is used in normal to output messages or headings. The Characters which are enclosed between " " constitute nonnumeric literal. The maximum

Example of add verb: (a) ADD A TO B. This illustration represents that the value of A will be added to the value of B and the result will be stored in B.  The alignment of

GIVING    file-name-5. The input files to be merged through the MERGE statements which are specified in the USING phrase. These files should be sequential files and should be

ON SIZE ERROR OPTION:   If after an arithmetic expression, the result exceeds the highest value which can be accommodated in the result; this error is termed as size error. T

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