LOAD Examples


Example 1:

 

  

LOAD

RECVING FROM NDX OF ITEM1,ITEM2,ITEM3

 

 

Variable

PL

FP

LP

Contents

Before:

RECVING

12

1

12

XXXXXXXXXXXX

 

NDX

4

 

 

···2

 

ITEM1

8

1

6

111111··

 

ITEM2

10

3

8

234567890-

 

ITEM3

4

3

3

3333

 

After:

RECVING

12

1

6

456789XXXXXX

 

The other four variables remain unchanged.

 

No Condition Flags are set (all FALSE).

Example 2:

 

Variable

PL

FP

LP

Contents

Before:

RECVING

12

1

12

XXXXXXXXXXXX

 

NDX

4

 

 

·5.3

 

ITEM1

8

1

8

11111111

 

ITEM2

8

1

8

22222222

 

ITEM3

8

1

8

33333333

 

After:

All variables remain unchanged.

 

No Condition Flags are set (all FALSE). NDX's value (5) does not correspond to a list item.

Example 3:

 

Variable

PL

FP

LP

Contents

Before:

RECVING

6

1

6

XXXXXX

 

NDX

4

 

 

·1.9

 

ITEM1

8

2

8

12345678

 

ITEM2

8

3

8

ABCDEFGH

 

ITEM3

8

3

4

ZZZZ----

 

After:

RECVING

6

1

6

234567

 

All other variables remain unchanged.

 

The EOS Condition Flag is set. RECVING was too small.

Example 4:

 

Variable

PL

FP

LP

Contents

Before:

RECVING

5

 

 

····0

 

NDX

2

 

 

·3

 

ITEM1

5

 

 

··111

 

ITEM2

5

 

 

··222

 

ITEM3

5

 

 

··333

 

After:

RECVING

5

 

 

··333

 

All other variables remain unchanged.

 

No Condition Flags are set (all FALSE).

Example 5:

 

LOAD

RECVING FROM NDX OF ITEM1,,ITEM3

 

 

Variable

PL

FP

LP

Contents

Before:

RECVING

12

1

12

XXXXXXXXXXXX

 

NDX

4

 

 

···2

 

ITEM1

8

1

6

111111··

 

ITEM3

4

3

3

3333

 

After:

All variables remain unchanged.

 

No Condition Flags are set (all FALSE). NDX's value (2) does not correspond to a list item.

Example 6:

  

LOAD

RECVING FROM NDX OF ITEM1,”NULL”,ITEM3

 

 

Variable

PL

FP

LP

Contents

Before:

RECVING

12

1

12

XXXXXXXXXXXX

 

NDX

4

 

 

···2

 

ITEM1

8

1

6

111111··

 

 

4

1

4

NULL

 

ITEM3

4

3

3

3333

 

After:

RECVING

12

1

4

NULLXXXXXXXX

 

All other variables remain unchanged.

 

No Condition Flags are set (all FALSE).

 

 



PL/B Language Reference LISTON Example LOADADR Example