MOVE - RECORD to RECORD


 

The MOVE RECORD to RECORD instruction allows transfer of the values for each member in the source RECORD to the corresponding member of the destination RECORD with a single instruction. It uses one of the following formats:

 

 

[label]

MOVE

{source}{sep}{dest}

 

Where:

label

Optional. A Program Execution Label.

source

Required. A RECORD variable or RECORD pointer that serves as the source operand.

sep

Required. A comma or one of the following prepositions: BY, TO, OF, FROM, USING, WITH, IN, or INTO.

dest

Required. A RECORD variable or RECORD pointer that serves as the destination operand.

Flags Affected: none

Note the following:

  1. The {source} and {dest} RECORDs must be identical.

  2. The MOVE operation is an absolute copy of each byte in {source} to the corresponding byte in {dest}.

  3. When moving RECORDs containing Pointers, the pointers in the receiving record will point to the same data as the source record after the move operation.

 

 

See Also: Example Code, MOVE

 



PL/B Language Reference MOVE - Variable to List of Variables MOVE - VARLIST to VARLIST