MOVE - Integer to Character String


 

This MOVE instruction performs a direct transfer of the contents of a source integer variable 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. An 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.

dest

Required. A Character String Variable that serves as the destination operand.

Flags Affected: EOS

Note the following:

  1. If the number of bytes that comprise the {source} is larger than {dest}, the high order bytes are lost and the EOS condition is TRUE (i.e., moving a four byte INTEGER into a smaller character string variable may result in significant data being lost).

  2. If {source} has been defined but not initialized (nor a value moved into it), {dest} contains a quantity of hex nulls (0x0) equal to the number of {source} bytes that were transferred (i.e., a null integer variable still has an absolute value).

 

 

See Also: Example Code, MOVE

 



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