COBOL Manual for TNS and TNS/R Programs
Libraries and Utility Routines
HP COBOL Manual for TNS and TNS/R Programs—522555-006
13-89
COBOL_ASSIGN_
COBOL_ASSIGN_
COBOL_ASSIGN_ is the CRE-equivalent of the COBOL-environment routine
COBOLASSIGN. If a CRE HP COBOL program calls COBOLASSIGN, it actually calls
COBOL_ASSIGN_ indirectly. The advantages to calling COBOL_ASSIGN_ directly
are:
•
You can pass all parameters from the Extended-Storage Section or Linkage
Section.
•
You can specify temporary file names.
•
You can specify two additional parameters, file-code and file-type.
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_ASSIGN_. See Files of Dummy Routines.
fd-name
is the fd-name of a file connector. The file specified in the ASSIGN phrase of the
SELECT clause that references fd-name will be replaced by system-file-
name. If the program was compiled in the OSS environment, the file will be an OSS
file, unless it was defined as a Guardian file by an ASSIGN such as:
ASSIGN TO "GUARDIAN #DYNAMIC"
ENTER COBOL_ASSIGN_
"
USING
library-reference
system-file-name
OF
"
fd-name
error-numberGIVING
file-code
file-type
ns ns
VST356.vsd