REMOVE Examples


Example 1:

 

  

REMOVE

SOURCE,DEST

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

1

10

abcdefghijklmnopqrst

 

DEST

10

1

4

test······

 

After:

SOURCE

20

0

10

abcdefghijklmnopqrst

 

DEST

10

1

10

abcdefghij

 

No Condition Flags are set (all FALSE).

 

Example 2:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

0

20

abcdefghijklmnopqrst

 

DEST

10

1

4

test······

 

After:

SOURCE

20

0

20

abcdefghijklmnopqrst

 

DEST

10

1

4

test······

 

The EOS Condition Flag is set. SOURCE was a null variable (Form Pointer set to zero).

 

Example 3:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

16

20

abcdefghijklmnopqrst

 

DEST

10

1

4

test······

 

After:

SOURCE

20

0

20

abcdefghijklmnopqrst

 

DEST

10

1

5

pqrst·····

 

The LESS Condition Flag is set. The Logical String of SOURCE was less than the Physical Length of DEST.

 

Example 4:

 

 

Variable

PL

FP

LP

Contents

Before:

SOURCE

20

1

10

abcdefghijklmnopqrst

 

DEST

5

1

4

test·

 

After:

SOURCE

20

6

10

abcdefghijklmnopqrst

 

DEST

5

1

5

abcde

 

The OVER Condition Flag is set. The Logical String of SOURCE was greater than the Physical Length of DEST.

 

 



PL/B Language Reference RECORD Examples RENAME Examples