Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Calling from exit modules

Use COBOL standard linkage in your exit modules to call COBOL programs or library routines. You need to be aware of these conventions in order to trace the call chain correctly.

When a call is made to a program or to a routine, the registers are set up as follows:

R1
Points to the parameter list passed to the called program or library routine
R13
Points to the register save area provided by the calling program or routine
R14
Holds the return address of the calling program or routine
R15
Holds the address of the called program or routine

Exit modules must have the RMODE attribute of 24 and the AMODE attribute of ANY.

related concepts  
Storage and its addressability


Terms of use | Feedback

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