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
|
|
|
|
|
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:
The contents of the {source} are rounded and truncated to the format of {dest} before being moved. The {source} remains unchanged.
If {source} is a numeric literal, it must be in valid numeric format.
All arithmetic rules apply including rounding, truncation and setting of the ZERO, LESS, and OVER Condition flags.
See Also: Example Code, MOVE
![]() |