TAL Programmer's Guide

Mixed-Language Features of TAL
Mixed-Language Programming
096254 Tandem Computers Incorporated 17–3
Public Name Before calling an external routine, a D-series TAL module can include an EXTERNAL
procedure declaration that specifies a public name for use in Binder. In particular,
specify an external routine identifier as a public name when the identifier does not
conform to TAL rules.
In the EXTERNAL procedure declaration, specify an equal sign (=) and the public
name, enclosed in quotes, following the routine identifier:
PROC cobol_proc = "cobol-program-unit" !Public name
LANGUAGE COBOL; !LANGUAGE attribute
EXTERNAL;
The public name must conform to the identifier rules of the language in which the
external routine is written. For all languages except C, the TAL compiler upshifts all
public names automatically. In the preceding example, the public name conforms to
COBOL rules.
If the external routine has formal parameters, the formal parameter list follows the
public name:
PROC cobol_proc = "cobol-program-unit" !Public name
(a, b, c) !Parameter list
LANGUAGE COBOL; !LANGUAGE attribute
STRING .a, .b, .c; !Parameter
! declarations
EXTERNAL;