SET Examples


Example 1:

 

  

SET

RECVING

 

 

Variable

PL

FP

LP

Contents

Before:

RECVING

20

1

12

ABCDEFGHIJKL········

 

After:

RECVING

20

1

1

1

 

No Condition Flags are changed.

 

Example 2:

 

  

SET

ARRAY

 

 

Variable

PL

FP

LP

Contents

Before:

ARRAY(1)

10

1

10

1234567890

 

ARRAY(2)

10

3

5

ABCDEFGH··

 

ARRAY(3)

10

0

5

54321····

 

After:

ARRAY(1)

10

1

1

1

 

ARRAY(2)

10

1

1

1

 

ARRAY(3)

10

1

1

1

 

No Condition Flags are changed.

 

Example 3:

 

  

SET

CITY,STATE,ZIP

 

 

Variable

PL

FP

LP

Contents

Before:

CITY

22

1

5

Tyler·················

 

STATE

2

1

2

TX

 

ZIP

5

 

 

75701

 

After:

CITY

22

1

1

1

 

STATE

2

1

1

1

 

ZIP

5

1

1

1

 

No Condition Flags are changed.

 



PL/B Language Reference SELECT Examples SETFLAG Examples