RPG/400 Help
*---------*---------------*-----------------*----------------*---------------*
| CODE | FACTOR 1 | FACTOR 2 | RESULT | INDICATORS |
| | | | FIELD | |
*---------*---------------*-----------------*----------------*---------------*
| RETRN | | | | |
*---------*---------------*-----------------*----------------*---------------*
The RETRN operation causes a return to the caller as follows:
- The halt indicators are checked. If a halt indicator is on, the
program ends abnormally. (All open files are closed, an error return
code is set to indicate to the calling routine that the program has ended
abnormally, and control returns to the calling routine.)
- If no halt indicators are on, the LR indicator is checked. If LR is
on, the program ends normally. (Locked data area structures, arrays,
and tables are written, and external indicators are reset.)
- If no halt indicator is on and LR is not on, the program returns to the
calling routine. Data is preserved for the next time the program is
run. Files and data areas are not written out.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.