MOVE - Numeric Field to Numeric Field


ANSI

 

This MOVE instruction transfers the contents of the numeric source to the destination numeric variable. The instruction uses the following formats

 

 

[label]

MOVE

{source}{sep}{dest}

 

Where:

label

Optional. A Program Execution Label.

source

Required. A Numeric Variable or Literal 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 Numeric Variable that serves as the destination operand.

Flags Affected: LESS, OVER, ZERO

Note the following:

  1. The contents of the {source} are rounded and truncated to the format of {dest} before being moved. The {source} remains unchanged.

  2. If {source} is a numeric literal, it must be in valid numeric format.

  3. All arithmetic rules apply including rounding, truncation and setting of the ZERO, LESS, and OVER Condition flags.

 

 

See Also: Example Code, MOVE

 



PL/B Language Reference MOVE - Numeric Field to Character String MOVE - Numeric Field to Integer