From Appendix B of the Enterprise COBOL Programming Guide, the linkage section in total can be 2,147,483,646 bytes under LP(32) and up to the available addressing capacity of the machine under LP(64).
A single data item under any section in the DATA DIVISION can be 999,999,999 bytes under LP(32) and 2,147,483,646 bytes under LP(64). So while you could potentially pass in a single item whose size is more than 999,999,999 bytes under LP(32) - from a program written in a different language, for example - COBOL would only support the first 999,999 bytes of it.
------------------------------
Mike Chase
Enterprise COBOL Developer
mike.chase@ca.ibm.com------------------------------
Original Message:
Sent: Tue February 27, 2024 11:59 AM
From: Fabiano Garske
Subject: Maximum size of data in Linkage Section
Hi,
please, can anyone tell me the maximum size of data passed in linkage section?
------------------------------
Fabiano Garske
------------------------------