Program for perform - thru, COBOL Programming

PROGRAM FOR PERFORM - THRU:

We have to write a program to elaborate PERFORM ...THRU statement

Identification division.

Program- id.  Perfthru.

Environment division.

Data division.

Procedure division.

Para-1.

  Display(1 1) erase.

  Display "ABC".

            Perform  para-2 thru para-4.

            Display "XYZ".

            Stop run.

Para-2.

             Display "DEF".

Para-3.

  Display "GHI".

            Display " Gandhi".

Para-4.

            Display "Bharathiar".

 

The output of the above program will be   ABC

                                                           DEF

                                                           GHI

                                                           Gandhi

                                                           Bharathiar

                                                            XYZ

Posted Date: 10/17/2012 7:44:44 AM | Location : United States







Related Discussions:- Program for perform - thru, Assignment Help, Ask Question on Program for perform - thru, Get Answer, Expert's Help, Program for perform - thru Discussions

Write discussion on Program for perform - thru
Your posts are moderated
Related Questions
PERFORM WITH VARYING OPTION: The format is as shown below:

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

Configuration Section: This section holds an overall specification of the computer used for the purpose of the compilation and execution of the program. There are in all 3 par

PROCEDURE DIVISION statements for the indexed files: All the statements which are available for a relative file are also available for an indexed file. READ STTATEMENT :

THE SIMPLE SORT VERB: The process of sequencing the records in some preferred manner is termed as sorting. The Sorting is done upon some key data item in the record. For illus

ACCEPT STATEMENT: The ACCEPT statement is used to read the low-volume data from the operator's console, several other hardware device or from the operating system. The common

INDEXED TABLES: The OCCURS clause that is used to define tables can optionally have an INDEXED phrase. This phrase involves the names of data items which are to be used as sub

TO WRITE A QUADRATIC EQN ROOTS ARE COMPLEX IN COBOL PROGRAM

PROGRAM TO DEMONSTRATE SORT VERB: The file for which a record having 2 fields, viz., Account Number and Name is already available. Sort the file based on the ascending order o

Example of Redefines clause: This illustration describes a sales record that may either contain the total amount of sale or the quantity (QTY) and UNIT-PRICE. The aim of such