MOVE - Numeric to Character String


ANSI

 

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

 

 

[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 Character String Variable that serves as the destination operand.

Flags Affected: EOS

Note the following:

  1. The transfer begins with the first physical position of the source and continues until {dest} is full or the {source} is exhausted. The transfer into {dest} begins at its first physical position. The {source} operand remains unchanged.

  2. The Form Pointer (FP) of {dest} is set to one (1) and the Length Pointer (LP) is set to the last byte transferred.

  3. If {dest} cannot hold all the transferred data, the EOS Condition flag is set.

 

 

See Also: Example Code, MOVE

 



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