COBOL Manual for TNS and TNS/R Programs
HP COBOL Limits
HP COBOL Manual for TNS and TNS/R Programs—522555-006
20-4
Number
•
Record or table
•
Relative record number
For software RVUs G06.00 and D46.00 and later, the maximum relative record
number for a relative file is 64 bits for NMCOBOL and in the CRE for COBOL85.
•
Tables allocated by the RECEIVE-CONTROL paragraph
The maximum size of the tables allocated by the RECEIVE-CONTROL paragraph
is 62 KB (65,400 characters). Anything larger causes a compilation error. Smaller
sizes can cause Binder errors (depending on the number of files specified in the
programs that comprise the run unit and other factors).
Number
These items, whose number in a program is limited, are in alphabetic order.
•
AFTER phrases in a PERFORM statement
The maximum number of AFTER phrases in a PERFORM statement is 6.
•
Characters written to an Edit-format file
A HP COBOL program can write at most 239 characters to a record of an Edit-
format file
•
CONSULT and SEARCH files for NMCOBOL program
For RVUs D46 and G06 and later, the number of CONSULT and SEARCH files
(including NMCOBEXT, ZCRESRL, and ZCOBSRL) for an NMCOBOL program
cannot exceed 64.
•
Digits in a hexadecimal numeric literal
The minimum number of hexadecimal digits in a hexadecimal numeric literal is 2
(1 pair); the maximum is 16 (8 pairs).
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 For a TNS program: 32,767 characters.
For a native program: no explicit limit—one record of
134,217,726 characters is possible