Messages
A program that does not contain a STOP RUN, GOBACK, or EXIT PROGRAM
statement will receive the following diagnostic message:
- IGYPS2091-W
- No "STOP RUN", "GOBACK" or "EXIT PROGRAM" was found in the program. Check program logic to verify that the program will exit.
Also, if the CMPR2 and FLAGMIG compiler options are used, the following
message will be issued:
- IGYPS2223-W
- **MIGR** An implicit "EXIT PROGRAM" will be executed at the end of this program under the "NOCMPR2" compiler option.
If a program does contain a STOP RUN, GOBACK, or EXIT PROGRAM statement,
and the NOOPTIMIZE compiler option is in effect, then use of the FLAGMIG
compiler option will result in the following message:
- IGYPS2224-W
- **MIGR** An implicit "EXIT PROGRAM" may be executed at the end of this program under the "NOCMPR2" compiler option. Recompile with the "OPTIMIZE" and "FLAGMIG" compiler options. If no "MIGR" message about an implicit "EXIT PROGRAM" is issued then no implicit "EXIT PROGRAM" will be executed.
Upon re-compilation with the OPTIMIZE compiler option, the absence
of any such messages indicates that the program will not have an implicit
EXIT PROGRAM generated for it, while the presence of the following
message indicates otherwise:
- IGYOP3210-W
- **MIGR** An implicit "EXIT PROGRAM" will be executed at the end of this program under the "NOCMPR2" compiler option.