User Spaces

Logic Flow of Processing a List of Entries

When you process a list containing multiple entries, the logic flow loo

 

*3333333333333333333333330

 

 

+

 

+

 

 

+

Initialize the next

+

 

 

+

entry with 'Where

+

 

 

+

the list begins'

+

 

 

,333333333333-333333333332

 

 

 

+

 

 

 

 

6

 

 

 

*3333333333333333333333330

 

 

+

 

+

 

 

+

Have all of the

+

YES

*33333335+

entries been

133333330

+

+

processed?

+

+

+

,333333333333-333333333332

+

+

 

+NO

 

List is

+

 

6

 

complete

+*3333333333333333333333330

+

+

 

 

+

+

+ Access the entry. Use +

+

+ the next entry

value

+

+

+

as an index.

 

+

+,33333333333-3333333333332

+

+

+

6

+*3333333333333333333333330

+

+

Process

+

+

+

the

+

+

+

entry

+

+

+

 

+

+,333333333333-333333333332

+

+

+

6

+*3333333333333333333333330

+

+

 

 

+

+

+

Add the

length of

+

+

+

each

entry

+

+

+

to the next entry

+

+,333333333333-333333333332

+

+

+

6

+*3333333333333333333333330

+

+ Add 1 to a count

of

+

+

+

how many have

 

+

+

+

been processed

+

+

+

 

 

+

+,333333333333-333333333332

+

 

+

 

 

+

 

+

 

 

,3333333333333333333332

 

 

It is

important

from

an upward

compatibility viewpoint to use the of

each

entry, and

the

number of

entries rather than hard coding the

program.

Related Information

Ÿ The User Space API chapterSystemof APItheReference, SC41-5801

ŸThe “User Space Format for List APIs” topic Systemin ChapterAPI 2 of the Reference, SC41-5801

Chapter 2. Getting Started with2-15APIs

Page 35
Image 35
IBM Version 4 manual Logic Flow of Processing a List of Entries, +No