Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (T-V)
Guardian Procedure Calls Reference Manual522629-013
15-23
UNLOCKREC Procedure
UNLOCKREC Procedure
Summary
Syntax for C Programmers
Syntax for TAL Programmers
Parameters
Condition Code Settings
Considerations
OSS Considerations
Example
Related Programming Manual
Summary
The UNLOCKREC procedure unlocks a record currently locked by the user. The
“user” is defined either as the opener of the file (identified by
filenum) if the file is not
audited—or the transaction (identified by the TRANSID) if the file is audited.
UNLOCKREC unlocks the record at the current position, allowing other users to
access that record. UNLOCKREC has no effect on a record of an audited file if that
record has been modified by the current transaction.
Syntax for C Programmers
CEXTDECS (via the included file TNSINTH) defines 32-bit values as the typedef
__int32_t which for TNS and TNS/R compiles is defined as
long and for TNS/E
compiles is defined as
int.
The function value returned by UNLOCKREC, which indicates the condition code,
can be interpreted by
_status_lt(), _status_eq(), or _status_gt()
(defined in the file
tal.h).
Syntax for TAL Programmers
#include <cextdecs(UNLOCKREC)>
_cc_status UNLOCKREC ( short filenum
,__int32_t tag );
CALL UNLOCKREC ( filenum ! i
,[ tag ] ); ! i