COBOL Manual for TNS and TNS/R Programs
Procedure Division Verbs
HP COBOL Manual for TNS and TNS/R Programs—522555-006
9-132
MOVE CORRESPONDING
MOVE CORRESPONDING
MOVE CORRESPONDING copies elements of one group to corresponding elements
of another group. Groups of data correspond if they have the same names and
qualifier names, beyond the group-names in the MOVE statement, and if they meet
restraints explained under CORRESPONDING Phrase.
group-1
is the group-name of the data to be copied.
group-2
is the group-name to which the data is to be copied.
MULTIPLY
Caution. MOVE CORRESPONDING is not recommended, because minor changes to one
group can change the correspondence between its elements and those of the other group, and
this is difficult to detect. If someone adds a new name to a group, the new name might be
included in unintended move operations.
Form Description
MULTIPLY BY
Multiplies one data item by one or more other data items and stores
the result(s) in the other data item(s); for example, the statement
MULTIPLY A BY B C D
means store A x B in B, A x C in C, and A x D in D
MULTIPLY GIVING
Multiplies two data items and stores the product in one or more other
data item(s); for example, the statement
MULTIPLY A BY B GIVING C D E
means store A x B in C, D, and E
group-1MOVE group-2TOCORRESPONDING
CORR
VST183.vsd