Program for simple perform, COBOL Programming

PROGRAM FOR SIMPLE PERFORM:

We have to write a program to elaborate simple PERFORM statement

Identification division.

Program- id.  Perf1.

Environment division.

Data division.

Procedure division.

Para-1.

  Display(1 1) erase.

  Display "ABC".

            Perform  para-2.

            Display "XYZ".

            Stop run.

Para-2.

             Display "DEF".

Description: The output of the program will be ABC

                                                                        DEF

                                                                        XYZ

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







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

Write discussion on Program for simple perform
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

PROGRAM FOR INDEXED SEQUENTIAL FILE CREATION (RANDOM MODE): We have to write a program to create an Indexed Sequential File in random mode for Student particulars. Suppose jus

NONSTANDARD CLAUSES: The various clauses explained above are as per the ANSI standard. Also, most compilers provide for additional nonstandard clauses to meet the specific nec

Example of Special-names: Consider the illustration: Let the SPECIAL-NAMES paragraph be as shown: SPECIAL-NAMES. CHANNEL 1 IS PAGE-TOP. The Channel is related with the t

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

PROGRAM TO DEMONSTRATE MERGE VERB: The two files for which a record having 2 fields viz. Account Number and Name are already available. Now Merge these two files and create a

OCCURS - INDEXED BY PROGRAM: identification division. program- id. searching. environment division. data division. working-storage section. 01 table1.      0

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

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