COBOL Manual for TNS and TNS/R Programs
Program Compilation
HP COBOL Manual for TNS and TNS/R Programs—522555-006
11-62
CONSULT and NOCONSULT
CONSULT and NOCONSULT
CONSULT
adds the files that object-name-list specifies to the tertiary search list. (See 
Tertiary Search List.)
object-name-list
can be continued onto subsequent lines, but the left parenthesis must appear on 
the same directive line as the keyword CONSULT. Each continuation line for a 
CONSULT directive must have a question-mark (?) in the indicator area. If a 
CONSULT directive spans multiple lines, they must be consecutive (no blank lines, 
comment lines, or program text lines can intervene).
object-name
is the name of an object file. It can be either a file-system file name or (in the 
Guardian environment) a DEFINE name. If the file-system file name is not fully 
qualified with system, volume, and subvolume names, the compiler uses the 
current default system, volume, and subvolume names to complete the 
qualification. If object-name is in the OSS environment, it is an OSS 
pathname.
For the NMCOBOL compiler, object-name must specify either:
•
A linkfile
•
An archive file
Note.  The NMCOBOL compiler ignores and issues a warning for the NOCONSULT directive.
object-name-list
object-name-list
CONSULT
NOCONSULT
( )
VST273.vsd
object-name
,
object-name
VST274.vsd










