Add and subtract corresponding, COBOL Programming

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 CORRESPONDING option.

 

405_ADD and SUBTRACT CORRESPONDING.png

In the situation of the ADD statement, the numeric elementary items in the group referred to by identifier-1 are added to and stored in the equivalent elementary items of the group named in identifier-2.  In the situation of the SUBTRACT statement, the equivalent numeric elementary items of the group referred to by identifier-1 are subtracted from and are stored in the equivalent numeric elementary items of the group referred to by identifier-2.

Posted Date: 10/16/2012 6:15:08 AM | Location : United States







Related Discussions:- Add and subtract corresponding, Assignment Help, Ask Question on Add and subtract corresponding, Get Answer, Expert's Help, Add and subtract corresponding Discussions

Write discussion on Add and subtract corresponding
Your posts are moderated
Related Questions
PROGRAM FOR SUBTRACT VERB: We have to write a simple program to elaborate the SUBTRACT verb. You can also use edit characters in the program. Identification division. Pr

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

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

RULES OF RENAMES CLAUSE:   The rules below should be observed while using the RENAMES clause: (i) All RENAMES entries should be written only after the last record descript

GO TO, STOP RUN: The GO TO verb is used to completely transfer the control to elsewhere in the program. Its form is as shown below: GO TO procedure-name As a result o

Rules of read statements: The next record is identified according to the rules as shown below: (i) Whenever the READ NEXT statement is the initial statement to be executed

PROGRAM FOR ELECTRICITY BILL: An electricity company supplies electricity to 4 types of customers coded 1, 2, 3 & 4.The rate schedule for customers is shown in one table as

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

OPEN statement: We know that the processing of a file should start with the execution of an OPEN statement. The file can be opened in any one of the 4 open modes - INPUT, OUTP

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