RPG Flow

You might also like

Download as pdf or txt
Download as pdf or txt
You are on page 1of 1

Move data from input area to

fields

RPG Logic Flow

START

First cycle ?

Read a record
from the file last
processed (at
start, read a
record from
each file)

Yes

No
Is selected input
record a matching
record ?

Total calculations

Yes
EOF on all input
files ?

Yes

Turn on LR and level


indicators L1 through L9

No
Total output
Turn off
MR

No

Are matching fields


specified ?

Yes

Turn on
MR

Select record with highest


priority
Detail calculations
LR on ?

Yes

STOP

No
Turn on record identifying
indicator

No
Heading and
detail output

OF on ?
Control break ?

Yes

Overflow
output

Turn on level indicator(s)

No
No
Next
Column
Next
Column

Yes

Turn off record identifying


indicator and all level
indicators

You might also like