MOVE - Integer to Character String Examples


Example 1:

 

  

MOVE

INT TO DIM

 

 

Variable

PL

FP

LP

Contents

Before:

INT

1

 

 

0x3F

 

DIM

1

1

1

X

 

After:

INT

1

 

 

0x3F

 

DIM

1

1

1

?

 

No Condition Flag is set (all FALSE).

 

Example 2:

 

 

Variable

PL

FP

LP

Contents

Before:

INT

1

 

 

0x0

 

DIM

4

1

4

NULL

 

After:

INT

1

 

 

0x0

 

DIM

4

1

1

•ULL (blank character is 0x0)

 

No Condition Flag is set (all FALSE). DIM's Logical String contains a null byte (0x0).

 

Example 3:

 

 

Variable

PL

FP

LP

Contents

Before:

INT

2

 

 

0x4040

 

DIM

1

1

1

X

 

After:

INT

2

 

 

0x4040

 

DIM

1

1

1

@

 

The EOS Condition Flag is set. Significant data from INT was lost.

 

 



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