HP RPG/XL Programmer's Guide (30318-90001)

1-9
4A.
3F If the record just read contains an unidentified record type, or
an incorrect record sequence (as specified in the Group Sequence
Field of the Input Specification), control skips to "Run-Time
Error Processing", Step E-1.
3G If the record just read is a blank spread record, control goes
back to Step 3D.
4 Record Selection
4A The next record is selected for processing. If a FORCE
Calculation Specification operation was executed during the
detail-time calculations in the previous pass through the cycle,
the record is selected from the FORCEd file. If no
matching-record processing is used, the next record is selected
according to the primary/secondary processing order. If
matching-record processing is used, the next record is selected
according to the matching-record processing order.
4B The program determines if all end-of-file conditions are met
(all records in files having an E in the End-of-File Field of
the File Description Specification are processed and all
matching secondary records are processed). If so, control skips
to Step 6B.
4C The record-identifying indicator (associated with the record
selected for processing) is turned on.
5 Control Break Check
If a control break occurred for the selected input record, turn
on the appropriate control-level indicator and all lower-level
indicators. (A control break occurs when the value in the
control-level fields of the record differs from the control
fields of the previous record.)
6 Total-Time Operations
6A If this is the first time through the logic cycle or this is the
first record with control fields, control skips to Step 6E;
otherwise, control proceeds to Step 6C.
6B If there are no more records to process in any of the files, all
control-level indicators (L1-L9 and LR) are turned on.
6C Total-time calculations are performed. If CHAIN or READ
operations are used, the appropriate records are retrieved. The
appropriate indicators resulting from total calculations are
turned on; overflow conditions resulting from EXCPT output
operations are set and Fetch Overflow processing is performed if
required by EXCPT output operations.
6D Total-time lines are written. Overflow processing is performed
if it was not done in Step 6C.
6E If the LR indicator is on, control skips to "End-of-Job
Processing", Step E-2A.
7 Data Movement
7A Overflow lines are written for total-time then detail-time
records that are conditioned by overflow indicators but that
have not yet been processed by Fetch Overflow.
7B If matching fields are specified and the records match, the MR
indicator is turned on; otherwise, it is turned off. When it is
turned on, it remains on until the matching record is processed.
7C The data fields from the record selected in Step 4A are
extracted and moved into the input data area. Field indicators,
if specified, are turned on or off according to the data in the
field.
7D If chaining field codes (C1-C9) are entered in the Chaining