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
DECLARATIVE and FILE STATUS Clause: The input-output exception condition in the situation of a direct access files can be handled by a declarative procedure in a manner simila

Example of read statement: Illustration: READ OLD-MASTER AT END MOVE ZERO TO END-OF-RECORDS. As a result of this statement, generally the next record from the OLD-MAST

SIMPLE MERGE VERB: Like sorting, the merging of files is often required in different commercial application. It is likely to merge two or more files with the help of one MERGE

Example of Accept statement: For illustration, ACCEPT FLAG-A can be specified to read the value of the FLAG_A from the console. It may be keep in mind that no file definition

Literals: The actual values can too appear in a program. These values are termed as literals. For illustration, the statement MOVE 0 TO TOTAL indicates that the value zero wil

CLOSE STATEMENT: When the processing of a file is completed, then the file may be closed. This is completed with the help of the CLOSE-verb. The form of the CLOSE statement is

Name the divisions in a COBOL program are given below DENTIFICATION DIVISION DATA DIVISION ENVIRONMENT DIVISION PROCEDURE DIVISION.

Identification Division: The Identification Division is the first division of each and every COBOL source program. The paragraph PROGRAM-ID is necessary in most of the mac

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

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP