COBOL Manual for TNS/E Programs (H06.08+, J06.03+)

Parameters
Guardian operating system routines are documented in the Guardian Procedure Calls Reference
Manual. When calling system routines from an HP COBOL program, use Table 110 to determine
the appropriate form for the COBOL parameters.
You must verify that the actual parameters in the ENTER statement (including return-value in
the GIVING phrase) are of the HP COBOL types that correspond to the TAL types of the formal
parameters in the operating system routine. The compiler performs the necessary conversions of
sending parameters. Parameters passed by reference must match exactly. The HP COBOL data
type INDEX does not correspond to a pTAL data type.
Table 110 HP COBOL and pTAL Parameter Correspondence
pTAL Data Type
Passed by ValuePassed by ReferenceCOBOL Data Category
Not applicableSTRINGAlphabetic
INTCOMP 9 (1) - 9 (4)Numeric INT
INT(32)
FIXED
REAL
REAL(64)
INT(32)COMP 9 (5) - 9 (9) INT
INT(32)
FIXED
REAL
REAL(64)
FIXEDCOMP 9 (10) - 9 (18) INT
INT(32)
FIXED
REAL
REAL(64)
INTNATIVE-2 INT
INT(32)
FIXED
REAL
REAL(64)
INT(32)NATIVE-4 INT
INT(32)
FIXED
REAL
REAL(64)
FIXEDNATIVE-8 INT
INT(32)
FIXED
REAL
REAL(64)
STRINGDISPLAY INT
INT(32)
FIXED
REAL
REAL(64)
Not applicableNot applicableINDEX
Not applicableSTRINGNumeric Edited
800 Calling Other Programs and Routines