COBOL Manual for TNS and TNS/R Programs
HP COBOL Limits
HP COBOL Manual for TNS and TNS/R Programs—522555-006
20-3
Size
•
Data in a run unit
°
TNS HP COBOL
The total size of all the items in the File Sections and Working-Storage
Sections of all the programs of a run unit cannot exceed approximately 63,400
bytes. The upper 64 KB of the 128 KB of user data space is reserved for
buffers and run-time data structures. Declare very large data items in the
Extended-Storage Section.
The total size of all the items in the Extended-Storage Sections of all the
programs of a run unit cannot exceed 133,693,440 bytes (127.5K).
°
TNS/R HP COBOL
The Working-Storage Section and the Extended-Storage Section are the same
in native HP COBOL. The small data area has a maximum size of 32,768
characters.
On a D-series or pre-G05 system, individual segments are limited to 128 KB.
On a G05 or later system, a native run unit has an overall address space of
just under 1.1 GB.
•
Data item to be operated on by the INSPECT, STRING, or UNSTRING
statement
For the COBOL85 compiler, a data item to be operated on by the INSPECT,
STRING, or UNSTRING statement cannot exceed 32,767 characters, even if it is
described in the Extended-Storage Section.
•
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.