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


Using subprograms

Many applications consist of several separately compiled programs that are linked together. If the programs call each other, they must be able to communicate. They need to transfer control and usually need access to common data.

COBOL programs that are nested within each other can also communicate. All the required subprograms for an application can be in one source file and thus require only one compilation.

related concepts
Main programs, subprograms, and calls

related tasks
Ending and reentering main programs or subprograms
Calling nested COBOL programs
Calling nonnested COBOL programs
Calling between COBOL and C/C++ programs
Making recursive calls

related references
Call interface conventions


Terms of use | Feedback

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