IBM AS/400 manual Examples of Sequential-within-Limits Processing, Disk Files

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 325
Image 325

 

 

 

 

Methods

for

Processing

Disk Files

limits

record.

If

the

two limits

supplied by the record-address

the

records

with

the

specified

key

are

retrieved.

The program repeats this procedure until the end of the record-add reached.

Examples of Sequential-within-Limits Processing

Figure 152 on page 302 shows an example of an indexed file being pr sequentially within limits. Figure 154 on page 303 shows the same examp externally described files instead of program-described files.

Figure 144 on page 294 shows the data description specifications (DD physical file used by the program ESWLIM1 ( Figure 152 on page 302) ESWLIM2 ( Figure 154 on page 303).

EXAMPLE PROGRAM 1 (Sequential-within-Limits Processing):

EMPMST

is

processed sequentially within limits

(L in position 28)

by the record

LIMITS. Each set of limits from the record-address file consists of

employee

numbers

of

the

records

in the EMPMST file to be

processed.

the employee number

key

field (ENUM) is five digits long,

each

set

sists of two 5-digits keys. (Note that ENUM is in packed

format,

the

requires

three

positions

instead

of five.)

 

 

Chapter 16. Accessing Database 301Files

Page 325
Image 325
IBM AS/400 manual Examples of Sequential-within-Limits Processing, Disk Files