MOVE - Variable to List of Variables


 

The MOVE variable to a list of variables instruction allows multiple variables to all be set to the same value in a single instruction. It uses one of the following formats:

 

(1)

[label]

MOVE

({source}{sep}{list1}

(2)

[label]

MOVE

({expression}{sep}{list2}

 

Where:

label

Optional. A Program Execution Label.

source

Required. A Character String Variable or numeric (FORM or INTEGER ) variable 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.

list1

Required. A list of destination variables or VARLISTs.

expression

Required. An Expression that serves as the source operand.

list2

Required. A list of numeric destination variables or VARLISTs of numeric variables.

Flags Affected: ZERO

Note the following:

  1. {list} may contain variables and VARLISTs.

  2. If operating in ANSI mode, all variables in {list} must be of the same type.

  3. If an {expression} is used, all destination variables must be numeric.

  4. Each MOVE operation is handled according to the rules previously stated for that individual MOVE.

 

 

See Also: Example Code, CALC, MOVE

 



PL/B Language Reference MOVE - Arithmetic Expression to Numeric Field MOVE - RECORD to RECORD