Compilation Options
With OPM programs LANSA uses the CRTRPGPGM command to compile source, but with ILE RPG/IV LANSA uses the CRTRPGMOD command. The differences between the two commands are:
- OPM uses OPTION(*OPTIMIZE) to optimize the compilation object and ILE uses OPTIMIZE(*FULL).
- OPM programs are always compiled with debug information included and have it stripped-out later if requested. Whereas ILE compiles have a DBGVIEW() parameter that controls the level of debug information included. If debug information is required in an ILE program, LANSA uses the *STMT level.
- OPM uses the IGNDECERR() parameter to ignore decimal data errors, ILE replaced this parameter with the FIXNBR() parameter that actually fixes decimal data errors. These different responses to decimal data errors must be considered when migrating to ILE.
For more information on these parameters refer to the
The implications of these differences must be considered before deciding to migrate to ILE.