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
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

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

CR and DB (Credit and Debit Sign): The two characters that is CR or DB symbol may appear only at the rightmost place of the picture. They are similar to the minus sign edit ch

PROGRAM FOR COMPUTE VERB: We have to write an easy program to elaborate the COMPUTE verb.  Identification division. Program- id. compverb. Environment division. Da

INDEXED SEQUENTIAL FILES: In the indexed sequential files which are also known as indexed files, the records are stored in the sequence order generally in ascending order. In

Plus Sign - edit characters for numeric data: + (Plus Sign) : A plus sign is alike to minus sign except that when the item is positive, +sign will be inserted rather th

REWRITE STATEMENT: As in the situation of a relative file, the REWRITE statement needs that the file should be opened in the I-O mode, and if the SEQENTIAL access mode is spec

PROGRAM TO FIND INTEREST ON BANK DEPOSITS: We have to write a program to find interest on deposits. The criteria is given below : identification division. program-

NEGATED SIMPLE CONDITION: Any of the easy condition explained can be preceded by the logical operator NOT. The consequence of placing the operator NOT before an easy condition

Write a COBOL IF sentence to use the values of numeric variables EXAM and COURSEWORK , both assumed to be with format PIC 999 and in the range 0 to 100 and to move the value: