COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
20 HP COBOL Limits
The HP architecture and the method of implementation of the HP COBOL compiler ECOBOL, impose
these kinds of limits on HP COBOL programs:
• Size (page 726)
• Number (page 727)
• Callability (page 729)
• External Names (page 729)
• Ranges of Values (page 729)
• Organization (page 81)
Size
• Block size of record in a data file
The maximum block size of a record in a data file is 32,768 characters.
• Buffer size for reading (HP COBOL Fast I-O)
2 * number * dbs, where number is specified in the RESERVE clause for the file being
read, and dbs is the data block size of the file being read.
• Buffer size for writing (buffered cache or HP COBOL Fast I-O)
29K characters per block, regardless of the number in the RESERVE clause.
• Buffer space needed for files
The sum of the buffer space needed for files cannot exceed 62 KB.
• Code
Single HP COBOL program
The code space limit for any single HP COBOL program is 16 MB. This limit does not
include any contained programs, each of which has its own 16 MB limit.
◦
◦ HP COBOL run unit
The combined object code space for the program file and ordinary DLLs is 256 MB.
Ordinary DLLs do not include the public DLLs such as ZCOBDLL and ZCREDLL.
• Composite of Operands
The composite of operands for an arithmetic statement other than COMPUTE must not exceed
a size of 18 decimal digits. For arithmetic expressions or COMPUTE statements, the composite
of operands does not apply.
• 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. In H06.28/J06.17 RVUs with specific SPRs and later RVUs, the sum of the lengths
726 HP COBOL Limits










