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
READ STATEMENTS: The common format for the read statements is as shown bellow. Format 1: READ file-name RECORD [ INTO   identifier ] [  ;  AT   END     imperative-s

Example of File-control: The assign clause assigns a specific physical peripheral device name to a file. The physical peripheral device are machine-dependent. We use the devic

DISPLAY STATEMENT:   The function of the DISPLAY statement is just opposite to that of the ACCEPT statement. It is used to display the low-volume results on the operator's co

Example of Write statement: Illustration: (i) WRITE TRANS-RECORD AFTER ADVANCING 3 LINES. This WRITE statement specified that the TRANS-RECORD is a record name of a fi

RELATIONAL CONDITION:   We know that a relational condition specifies a comparison between two operands and has the form.     Operand-1    relational-operator   operand-2

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 IF :   We have to write a program to check whether the given number is ODD or EVEN. Identification division. Program- id. Ifst. Environment division.

Illustration of nested if statement: Consider the nested sentence which is as shown below: The IF-ELSE pairs in this sentence can be detected by applying the rule whic

VALUE CLAUSE: The value clause defines the preliminary value of the data item. Normally initialization will be completed just before the first statement in the procedure di

DELETE STATEMENT: The format of the delete statement is as shown below: DELETE   file-name RECORD   [  ;   INVALID   KEY  imperative-statement  ] Whenever the ACCESS MOD