CALLINTERFACE
The CALLINTERFACE directive specifies the interface convention for CALL statements. The convention specified stays in effect until another CALLINTERFACE directive is encountered in the source.
- SYSTEM
- Specifies that the call interface convention is the standard system linkage convention of the platform.
- DESC, DESCRIPTOR
- Indicates that an argument descriptor is passed for each argument on a CALL statement.
- NODESC, NODESCRIPTOR
- Indicates that no argument descriptors are passed for any arguments on a CALL statement. NODESC/NODESCRIPTOR is the default.
Specify >>CALLINTERFACE only in the procedure division.
The positions of CALL statements relative to the CALLINTERFACE directive are recognized following any processing of COPY and REPLACE statements. For example, CALL statements and CALLINTERFACE directives in COPY text are processed by the rules specified for the CALLINTERFACE directive.
If you specify syntax in the CALLINTERFACE directive that is not supported, the entire CALLINTERFACE directive is ignored.
Syntax and general rules
- You must specify >>CALLINTERFACE on a line by itself, in Area B.
- You cannot specify >>CALLINTERFACE:
- Within a COPY or REPLACE statement
- Between the lines of a continued character string
- In the middle of a COBOL statement
- The >>CALLINTERFACE specification is limited to the current compilation unit.
- The REPLACE statement and REPLACING phrase of the COPY statement do not affect the CALLINTERFACE directive.