COBOL Manual for TNS/E Programs (H06.08+, J06.03+)
If the program is compiled with the PORT directive, the called program can be compiled
by any of these TNS/E compilers:
• C
• C++
• ECOBOL
• EpTAL
file-mnemonic
is the alias for the object file to be searched for the called program. The association between
file-mnemonic and the object file is established by the File-Mnemonic clause of the
SPECIAL-NAMES paragraph. The file-mnemonic is not part of program-name and
is not a qualifier that can make program-name unique.
file-mnemonic must specify either:
• A linkfile
• An import library
• A DLL
• An archive file
identifier
can be used only if you are calling a COBOL program. It is an alphanumeric identifier
whose value, the program-name in the called program’s PROGRAM-ID paragraph, is
not known until run time. The compiler ignores leading and trailing spaces in
program-name and converts it to uppercase.
You must include the called program in the run unit, usually with a separate bind or link
step.
All parameters are passed as extended addresses; therefore, formal parameters in the
called program must not specify ACCESS MODE STANDARD.
USING phrase
USING
marks the beginning of the parameter list. The Procedure Division header of the called
program must contain a corresponding USING phrase.
REFERENCE
specifies that the called program uses the actual data item of the calling program. If the
called program changes the value of the parameter, it changes the value of the data item
in the calling program. REFERENCE applies to all the parameters that follow it until a
CONTENT or VALUE phrase appears. This is the default.
294 Procedure Division Verbs










