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


CALL statements on non-CICS

For CALL statements between OS/VS COBOL programs and Enterprise COBOL programs, parameters must be below the 16-MB line. The following sections explain the actions that you need to take for dynamic and static CALL statements.
Dynamic CALL statements
Parameters passed from an Enterprise COBOL program that dynamically calls an OS/VS COBOL program must be addressable by the OS/VS COBOL program. Specifying the appropriate Enterprise COBOL compiler options will ensure that the data is addressable by the OS/VS COBOL program.

For Enterprise COBOL programs compiled with RENT, specify the DATA(24) compiler option.

For Enterprise COBOL programs compiled with NORENT, specify the RMODE(24) or RMODE(AUTO) compiler option.

Static CALL statements
If you issue static CALL statements between OS/VS COBOL and Enterprise COBOL programs, thus forming a single load module, the load module must reside below the 16-MB line. The load module must be marked RMODE 24, AMODE 24.

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 an Enterprise COBOL program compiled with NORENT. (For programs compiled with RENT, no action is necessary. The linkage editor automatically assigns the correct AMODE setting.) For instructions on how to override the default AMODE setting, see Overriding linkage editor defaults.


Terms of use | Feedback

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