Saturday, September 5, 2009

LINKAGE SECTION

LINKAGE SECTION


The LINKAGE SECTION is used in a subprogram to define data that will be passed as arguments to the routine. The structure of the items is as described in the Data Items section of this tutorial. Each 01 level item in the LINKAGE SECTION should be included in the PROCEDURE DIVISION USING heading. For example:
















PROCEDURE DIVISION USING



PARAMETER-1





PARAMETER-2





PARAMETER-3.



In this example, the subprogram would have 3 passed parameters called PARAMETER-1, PARAMETER-2, and PARAMETER-3. Each of them would be defined as an 01 level item in the LINKAGE SECTION. The order that the items are defined in the LINKAGE SECTION is unimportant.