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
PROGRAM FOR ADD VERB: We have to write a simple program to elaborate the ADD verb. You can also use edit characters in the program. Identification division. Program- id.

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

B (Blank Insertion) : The occurrence of a B anyplace in the picture will insert a space character in the edited data. There can be more than one B in the picture. Examples:

ON SIZE ERROR OPTION: Whenever a size error occurs, the contents of the result field after the operation is unpredictable.  Though, the processing is not-terminated and the co

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

COBOL Words: The COBOL word can be formed by using the characters as shown below: 0-9 A-Z (a-z) - (hyphen) The rules below should be hold in forming the COBOL words.


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:

Abbreviation: The Consecutive relational conditions in a compound condition can be abbreviated in many cases as shown: (i) When the subjects in the consecutive relational c

Comparing features of oracle rdbms with Mysql