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
ARITHMETIC VERBS: Most of the problems need some computations to be performed on the input or intermediate data that are numeric in nature. The Arithmetic verbs are used to pe

Display control verbs in Cobol

Rules for Simple sort verb: The work file is to be defined by a sort elaboration entry (SD entry).The format of SD entry is as shown below. The rules below should be taken

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:

Illustration of if- else statement: IF OK-BALANCE NEXT SENTENCE ELSE MOVE 2 BALANCE-CODE In this illustration, the OK-BALANCE is a condition name. No action is specific if

Example of If- else statement Illustration:   IF   QUANTITY IS NUMERIC AND QUANTITY IS POSITIVE          MOVE ZERO TO ERROR-CODE. COMPUTE SALES VALUE=QUANTITY*RATE

Character Set: To study any language, first one should know the alphabets of the language and they are termed as character set in general. There are 50 different characters in

Comparing features of oracle rdbms with Mysql

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

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-