COBOL/400 Language Help

Format 2 (MOVE with CORRESPONDING)

Description
When you specify Format 2, both identifiers must be group items. Do not specify an index data item in a MOVE statement.
Format 2 (MOVE with CORRESPONDING)
 
->->--MOVE-*-CORRESPONDING-*-identifier-1 TO identifier-2-------><-
         *-CORR----------*

CORRESPONDING

When you specify CORRESPONDING, selected items in identifier-1 are moved to identifier-2. The results of moving items in identifier-1 to identifier-2 are the same as if a separate MOVE statement referenced each pair of corresponding identifiers.

A pointer data item can be part of a group that is referenced in a MOVE CORRESPONDING statement. However, the pointer data item will not move.

CORR

CORR is an abbreviation for, and equivalent to, CORRESPONDING.

identifier-1 or -2

In Format 2, identifier-1 and identifier-2 must be group items.


[ Top of Page | Previous Page | Next Page | Table of Contents ]