Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Compiler and Runtime Migration Guide


When to override the default settings

For load modules with both Enterprise COBOL and OS/VS COBOL programs, you must override the default AMODE setting to AMODE(24) when the load module contains a Enterprise COBOL program compiled with NORENT. (For programs compiled with RENT, no action is necessary. The linkage editor automatically assigns the correct AMODE setting.)

Exception: Do not override the default AMODE/RMODE settings in the following cases:
AMODE
For load modules that contain VS COBOL II programs compiled NORES or any OS/VS COBOL programs, do not specify a linkage editor override of AMODE ANY or AMODE 31. The only exception is if the programs are external entry points called by the system or through system services and the logic of the application can guarantee, through appropriate AMODE switching, that these programs will be entered in AMODE 24. These programs will not switch AMODEs when they statically call other programs.
RMODE
For load modules that contain VS COBOL II programs compiled NORES and NORENT or any OS/VS COBOL programs, do not specify a linkage editor override of RMODE ANY. This is because certain control blocks contained in the object modules produced by the compiler must reside below the 16-MB line.

Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)