COBOL/400 Language Help

Format 1 (MOVE)

Description
The MOVE statement transfers data from one area of storage to one or more other areas. Do not specify an index data item in a MOVE statement.
Format 1 (MOVE)
 
                               *------------*
                               V            +
->->---MOVE--*-identifier-1-*-TO identifier-2-*-------------><-
           *-literal-1----*
 

identifier-1 or literal-1

Identifier-1 or literal-1 is the sending item.

When you specify Format 1, all identifiers may be either group or elementary items.

Any length evaluation, subscripting , or reference modification associated with the sending item is evaluated only once, immediately before data is moved into the first of the receiving items. (Click here for information about reference modification.)

identifier-2

Identifier-2 represents the receiving item. When you specify Format 1, all identifiers may be either group or elementary items.

Any length evaluation, subscripting , or reference modification associated with a receiving item is evaluated immediately before data is moved into it. (Click here for information about reference modification.)


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