Program for add corresponding, COBOL Programming

PROGRAM FOR ADD CORRESPONDING:

We have to write a simple program to demonstrate Add Corresponding.

  identification division.

  program- id.

  environment division.

  data division.

  working-storage section.

  01  rec-1.

    02   sno   pic  9(2) value 11.

    02   mark1 pic 9(2) value 1.     

  01  rec-2.

    05   sno   pic  9(2)  value 10.

    05   mark2 pic 9(2) value 2.

  procedure division.

  p-1.

    display(1 1) erase.  

    display(3 5) mark1 of rec-1.

    add corr rec-1 to rec-2.

    display(5 5) mark2 of rec-2.

display (10 5) sno of rec-2.

stop run.

Posted Date: 10/18/2012 2:03:31 AM | Location : United States







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

Write discussion on Program for add corresponding
Your posts are moderated
Related Questions
CONDITIONS-NAME CONDITION:   The condition name is an entity which itself is a condition and these can have either a true or false value. Though, a condition name cannot be d

Data Names and Identifiers:   The Data name provides reference to the storage space in the memory where the real value is stored. This value takes part in the operation whene

Introduction to MOVE Verb: The aim of this section is to introduce the learner how to move data from one place to the other place in the memory. This is completed with the help

SUBTRACT VERB: The SUBTRACT verb is used to subtract one, or the sum of two or more numbers from one or more numbers and to store the result. The form of the SUBTRACT verb

File Description for the Relative and Indexed Files: The FD entry for a relative or an indexed file is similar to that of a sequential file. Some compilers do not permit varia

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

ADD VERB: The ADD Verb can be used to find the sum of two or more numbers and to store the sum.  The ADD verb takes any one of the two forms as shown below:

Examples - Edit characters for numeric data: The following illustration illustrates the use of Z editing characters. The character b is used to indicate the space character an

Example of Move corresponding: Consider the DATA DIVISION entries shown below. Suppose it is needed that the data stored in the 4 fields of the PAY_REC should be