MOVELS Examples


Example 1:

  

MOVELS

SOURCE,DEST

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

1

1

Quentin·············

 

DEST

20

6

6

John·J.·Public······

 

After:

SOURCE

20

1

1

Quentin·············

 

DEST

20

6

6

John·Q.·Public······

 

No Condition Flags are set (all FALSE).

 

Example 2:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

1

7

Quentin·············

 

DEST

20

6

6

John·J.·Public······

 

After:

SOURCE

20

1

7

Quentin·············

 

DEST

20

6

6

John·Q.·Public······

 

The EOS Condition Flag is set. SOURCE's Logical String is larger than that of DEST.

 

Example 3:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

1

1

Quentin·············

 

DEST

20

6

14

John·J.·Public······

 

After:

SOURCE

20

1

1

Quentin·············

 

DEST

20

6

14

John·Q.·Public······

 

The LESS Condition Flag is set. DEST's Logical String is larger than that of SOURCE.

 

Example 4:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

0

8

Quentin·············

 

DEST

20

6

14

John·J.·Public······

 

After:

SOURCE

20

0

8

Quentin·············

 

DEST

20

6

14

John·J.·Public······

 

The ZERO Condition Flag is set. SOURCE was a null string (Form Pointer set to 0).

 

Example 5:

 

 

Variable

PL

FP

LP

Contents

Before:

ZIP

5

 

 

75701

 

DEST

20

11

15

Tyler,·TX·75240·····

 

After:

SOURCE

5

 

 

75701

 

DEST

20

11

15

Tyler,·TX·75701·····

 

No Condition Flags are set (all FALSE).

 



PL/B Language Reference MOVELPTR Examples MOVEPLEN Examples