TNS/R Native Application Migration Guide

Guardian API Migration Tasks
TNS/R Native Application Migration Guide523745-001
9-6
CHECK^FILE
CHECK^FILE
The CHECK^FILE procedure retrieves the file characteristics of a specified file. There
are two versions of the CHECK^FILE procedure: one for the TNS programs and one
for native programs. Separate TNS and native versions are required because pTAL
uses separate data types for integer and address values.
For TNS programs, the procedure returns integer and address values through the type
INT. For native programs, the procedure returns integer values through the type INT
and address values through a new optional parameter of type WADDR. pTAL type
WADDR is equivalent to C type short. Change your native programs to use the native
version of CHECK^FILE.
You can use the CALL_CHECK^FILE_ADDRESS_ define in the GPLDEFS
declarations file to maintain common TNS and native source code.
See the Guardian Procedure Calls Reference Manual for more information about the
CHECK^FILE procedure.
SET^FILE
The SET^FILE procedure alters file characteristics and checks the old values of the
characteristics being altered. There are two version of the SET^FILE procedure: one
for the TNS programs and one for native programs. Separate TNS and native versions
are required because pTAL uses separate data types for integer and address values.
For TNS programs, the procedure returns integer and address values through a pointer
of type INT. For native programs, the procedure returns integer values through the type
INT and address values through a new optional parameter of type WADDR. pTAL type
WADDR is equivalent to C type short. Change your native programs to use the native
version of SET^FILE.
You can use the CALL_SET^FILE_ADDRESS_ define in the GPLDEFS declarations
file to maintain common TNS and native source code.
See the Guardian Procedure Calls Reference Manual for more information about the
SET^FILE procedure.