COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-36
Predefined SEARCH DEFINEs
If the default value for count produces a failure in compilation, increase it by one. If
that still is not enough, increase it by one more, and so on. Be aware that high count
values cause the compilation to take longer to start and to use more disk space.
If the summary listing at the end of a compilation indicates that the maximum symbol
table size is less than 256 KB, you might be able to reduce the system resources
required for later compilations by specifying PARAM SYMBOL-BLOCKS 1.
For the COBOL85 compiler, if you allow count to default to 2, your program can have
a maximum of approximately 1000 procedure names (paragraph names and section
names). Changing count changes this limit.
Predefined SEARCH DEFINEs
The compiler recognizes two predefined DEFINEs with CLASS attribute SEARCH:
•
=_SOURCE_SEARCH
•
=_OBJECT_SEARCH
These allow you to specify one or more subvolumes for the compiler to search for
unqualified source text files and object files, respectively. (“Unqualified” means that the
file name does not contain a volume and subvolume.) If you use these predefined
DEFINEs, you do not need to specify DEFINEs in the compiler command or in the
source text.
To add a predefined SEARCH DEFINE, use the ADD DEFINE command. For example:
ADD DEFINE =_SOURCE_SEARCH, CLASS SEARCH, SUBVOL0
(=_DEFAULTS,$VOL1.SUB2,$VOL1.SUB3)
In this example, the compiler is to search the default subvolume first, then
$VOL1.SUB2, and finally $VOL1.SUB3.
Table 11-11. How the PARAM SYMBOL-BLOCKS Command Affects Space
Allocation
Item
Space Allocated for Item
When PARAM SYMBOL-BLOCKS
command is specified ... Default
Symbol dictionary count 256-KB blocks Two 256-KB blocks for the
COBOL85 compiler, three
256-KB blocks for the
NMCOBOL compiler
Local label table
(COBOL85
compiler only)
count 2-KB blocks Two 2-KB blocks
Embedded
SQL/MP
statements
count times 500 lines times number
of embedded SQL/MP statements, plus
extra space for REPLACE statements
500 lines of SQL/MP text per
statement