IBM AS/400 Consecutive Processing, Methods for Processing Disk Files, subsequent, text, describes

Models: AS/400

1 489
Download 489 pages 47.95 Kb
Page 316
Image 316
subsequent

Methods for Processing Disk Files

Table 19 on page 292 shows the valid entries for positions 28, 34, and file description specification for the various file types and process

subsequent

text

describes

each

method of

processing.

 

 

 

 

 

 

 

 

 

 

Table

 

19.

Processing Methods for DISK Files

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Processing

Method

 

 

 

 

 

Limits

 

Record

 

 

 

File

 

 

 

 

 

 

 

 

Processing

 

Address

 

 

Organization

 

 

 

 

 

 

 

 

(Pos. 28)

 

Type

 

 

 

(Pos. 35)

 

 

 

 

 

 

 

 

 

 

(Pos. 34)

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Externally

Described

Files

 

 

 

 

 

 

 

 

 

 

With

Keys

 

 

 

 

 

 

 

 

 

 

 

 

Sequentially

 

 

 

 

Blank

 

K

 

 

 

Blank

Randomly

 

 

 

 

 

Blank

 

K

 

 

 

Blank

Sequential

within

limits

 

L

 

K

 

 

 

Blank

(by record-address file)

 

 

 

 

 

 

 

 

Without

Keys

 

 

 

 

 

 

 

 

 

 

 

Randomly/consecutively

 

Blank

 

Blank

 

 

Blank

 

 

 

 

 

 

 

 

 

 

 

 

 

Program

Described

Files

 

 

 

 

 

 

 

 

 

 

With

Keys

(indexed

file)

 

 

 

 

 

 

 

 

Sequentially

 

 

 

 

Blank

 

A,

D,

G,

P,

I

 

 

 

 

 

 

 

 

 

 

T,

Z,

or

F

Randomly

 

 

 

 

 

Blank

 

A,

D,

G,

P,

I

 

 

 

 

 

 

 

 

 

 

T,

Z,

or

F

Sequential

within

limits

 

L

 

A,

D,

G,

P,

I

(by record-address file)

 

 

 

T,

Z,

or

F

Without

Keys

 

 

 

 

 

 

 

 

 

 

 

Randomly/consecutively

 

Blank

 

Blank

 

 

Blank

By

record-address

file

 

Blank

 

Blank

 

 

Blank

As record-address file

 

Blank

 

Blank

 

 

T

(relative

record

numbers)

 

 

 

 

 

 

 

 

As

record-address

limits

fileBlank

 

A,

D,

G,

P,

Blank

 

 

 

 

 

 

 

 

 

 

T,

Z,

F,

or

 

 

 

 

 

 

 

 

 

 

Blank

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

Consecutive Processing

During consecutive processing, records are read in the order they ap

For

output

and

input

files that

do

not use

random functions

(such

as S

SETGT,

CHAIN,

or

ADD),

the ILE RPG compiler defaults to or operates as

SEQONLY(*YES)

had

been

specified on the CL command OVRDBF (Override with

Database File). (The ILE RPG compiler does not operate as though

 

SEQONLY(*YES)

had

been

specified

for

update

files.)

SEQONLY(*YES)

allows

 

multiple records

to

be

placed

in internal

data

management

buffers;

the

then

passed to

the

ILE

RPG compiler

one

at

a

time

on

input.

 

292 ILE RPG for AS/400 Programmer's Guide

Page 316
Image 316
IBM AS/400 manual Consecutive Processing, Methods for Processing Disk Files, subsequent, text, describes, each, method of