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

HP COBOL Limits
HP COBOL Manual for TNS/E Programs520347-003
20-4
Number
Nesting depth
°
OCCURS clauses
The maximum depth of OCCURS clauses in a table is 7.
°
Programs
Programs can be nested within other programs to a depth of 7.
°
PERFORM stack
The maximum depth is 50.
Parameters
The maximum number of parameters that can be passed by a HP COBOL program
or to a HP COBOL program is 126.
Prime key offset
For indexed files, the maximum offset of a prime key from the beginning of a
record is 2,034, which is an Enscribe record manager limitation.
Records
There is no explicit limit on the number of internal or external records in a main
program, a called program, or a run unit.
Receivers
°
In an INITIALIZE Statement
The maximum number of receivers in an INITIALIZE statement is 127.
°
In a MOVE statement
The maximum number of receivers in a MOVE statement is 255.
References to level-88 condition-names in a program
A condition-name can be defined in the Environment Division (associated with an
external switch) or in the Data Division (as a level-88 item). The Procedure Division
of a program can have a maximum of 32,767 references to level-88 condition-
names. There is no limit to the number of references to condition-names for
external switches.
Subjects in an EVALUATE statement
The maximum number of receivers in an EVALUATE statement is 127.
Subscripts
See Nesting depth.