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


Image description: LINKAGE SECTION

This image shows sample code for a parameter list in a calling program and for the corresponding LINKAGE SECTION in a called program.

The following is the calling program:

WORKING-STORAGE SECTION.
01 PARAM-LIST.
   05 PARTCODE PIC A.
   05 PARTNO   PIC X(4).
   05 U-SALES  PIC 9(5).
   ...
PROCEDURE DIVISION.
   ...
   CALL “CALLED-PROG” USING PARAM-LIST.

The following is the called program:

LINKAGE SECTION.
01 USING-LIST.
   10 PART-ID PIC X(5).
   10 SALES PIC 9(5). ...
PROCEDURE DIVISION USING USING-LIST.

End of image description.


Terms of use | Feedback

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