COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-94
COBOL_FILE_INFO_
As with any ENTER statement, you must either qualify the name COBOL_FILE_INFO_
with the library-reference COBOLLIB or include a SEARCH directive specifying
COBOLLIB to provide automatic resolution of the reference. The general form of the
ENTER statement to use COBOL_FILE_INFO_ follows.
library-reference
is a mnemonic-name associated, in the SPECIAL-NAMES paragraph, with either
COBOLLIB or some other object file containing an object copy of
COBOL_FILE_INFO_.
file-name
is the COBOL name of the file in the FD entry.
name-buffer
is the buffer in which the file name is returned. To accommodate the maximum file
name size, name-buffer must hold at least 1023 characters. To accommodate
the largest Guardian file name, name-buffer must be at least 35 characters. If
name-buffer is too short for the file name, the file name is truncated. If the file
name is an OSS file, the terminating zero byte is included in the name and in the
name size.
name-size
is the data item in which the size of the file name is returned. If the file name was
truncated, name-size contains the actual size, not the truncated size.
ENTER COBOL_FILE_INFO_
"
USING
library-referenceOF
"
TAL
name-buffer
name-size
error
file-name
file-number
VST636.vsd