COBOL Manual for TNS/E Programs (H06.03+)

HP COBOL Limits
HP COBOL Manual for TNS/E Programs520347-003
20-2
Size
Data in a run unit
The combined size of static data, heap, and flat segments is limited to
approximately 1.5 GB.
Data allocated dynamically (that is, on the stack) is limited to less than 32 MB (see
Storage Allocation For an Initial Program). Stack data includes all data items
declared in an INITIAL program (other than the main program) and some
temporary data items generated by the compiler, but stack data counts toward the
limit only if the program is active (has been called and has not exited).
File-control entry with multiple keys
In a file-control entry with multiple keys, the sum of the lengths of the keys cannot
exceed 253 characters.
Index
An index (index-name or index data item) occupies four bytes, in any section: File,
Working-Storage, or Extended-Storage.
Length of a numeric literal
A numeric literal has a maximum length of 18 digits.
Length of a nonnumeric literal or OSS path name
A nonnumeric literal or OSS path name has a maximum length of 160 characters.
Logical page
When a file definition includes a LINAGE clause, the size of its logical page is
limited to 9,999 lines.
Record or table
Relative record number
The maximum relative record number for a relative file is 64 bits.
Location of Record or Table Maximum Record or Table Size
Extended-Storage Section No explicit limit—one record of 134,217,726
characters is possible
File assigned to $RECEIVE 32 KB
File assigned to another device Operating environment limits for the device apply
File Section 32,767 characters
Linkage Section 134 megabytes
Working-Storage Section No explicit limit—one record of 134,217,726
characters is possible