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

1: 10
Field of one or more Input Specifications, a record is retrieved
from each specified file; the appropriate record-identifying
indicators are turned on; the data fields are moved to the input
data area and field indicators are set.
7E If look-ahead fields are specified, the look-ahead fields are
extracted and moved to the look-ahead data area. For combined
and update files, the look-ahead fields are extracted from the
current record; for all other files, the look-ahead fields are
extracted from the next record in the file currently being
processed.
8 Detail-Time Calculations
Detail-time calculations are performed. If CHAIN or READ
operations are used, the appropriate records are retrieved. The
appropriate indicators resulting from detail 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.
E-1 Run-Time Error Processing
E-1A If there is a pre-selected response for this error in the Header
Specification, control skips to Step E-1C.
E-1B The response is obtained from the computer operator or from the
job file.
E-1C If the response is 0 (CONTINUE), control proceeds to Step E-1D.
If the response is 1 (BYPASS), control skips to Step 2B.
If the response is 2 (REGULAR TERMINATION), control skips to
Step 6B.
If the response is 3 (IMMEDIATE TERMINATION), control skips to
Step E-2F.
If the response is 4 (REGULAR TERMINATE WITH DUMP), control
skips to Step E-1G.
If the response is 5 (IMMEDIATE TERMINATE WITH DUMP), control
skips to Step E-1F.
E-1D Each halt indicator (H0-H9) is tested. If an indicator is on,
it is reset and control skips back to Step E-1A.
E-1E Processing is resumed at the point in the logic cycle where the
error occurred.
E-1F An Error Dump is printed and the program skips to step E-2F.
E-1G An Error Dump is printed and control skips to Step 6B.
E-2 End-of-Job Processing
E-2A Output tables and arrays are written. All files are closed
(except when the program is in suspend mode). The settings of
the user indicators (U1-U8) update the Job Control Word and the
Local Data Area is written back to the LDAFILE, if specified.
E-2B If the JCW RPGSUSP does not equal 1 (the program is not
suspended), the program ends.
E-2C Processing is suspended. Files are left open for later access.
E-2D Control is transferred back to the father process.
E-2E If the father process reactivates the suspended program, control
begins at Step 1.
E-2F Close files.