Rational Developer for System z
COBOL for Windows, Version 7.5, Programming Guide


The default linkage convention is SYSTEM(STDCALL), which is in effect when you use the compiler option CALLINT(SYSTEM).

With this convention, the name of the called routine is expanded in two ways (known as name decoration):

If you are using this linkage convention, you must ensure that the argument list in the calling program exactly matches the parameter list in the called subroutine. For example, suppose you code this statement:

Call SubProg Using Parm-1 Parm-2.

The name of the called routine will be _SubProg@8. Suppose, however, the SubProg routine itself is coded as:

Procedure Division Using Parm-1 Parm-2 Parm-3.

Its system-generated name will be _SubProg@12. This different name will cause a linker error because the linker will not be able to resolve the call to _SubProg@8.

related references
CALLINT
SYSTEM


Terms of use | Feedback

Copyright IBM Corporation 1996, 2008.
This information center is powered by Eclipse technology. (http://www.eclipse.org)