gtpg2m58 | General Macros |
This general macro releases the hold on the record address contained in the specified file address reference word (FARW) in the entry control block (ECB).
Format
|
Entry Requirements
Return Conditions
When the commit scope ends with a TXCMC macro call, all pending DASD writes are written to the media requested (VFA, DASD control unit cache, or the DASD surface). After the DASD writes are completed successfully, locks are released to the system. At this point the locks can be granted to other ECBs that are not in the commit scope.
When the commit scope ends with a TXRBC macro call, all pending DASD writes are discarded. The UNFRC macro works differently depending on whether the lock was acquired as part of the current commit scope or before the current commit scope. If the lock was acquired before the current commit scope, the UNFRC macro is ignored on a rollback. This leaves the lock held by the ECB, perhaps as part of a previous commit scope. If the lock was acquired during the current commit scope, both the acquiring of the lock and its release are rolled back and the lock is immediately available. If the commit scope being rolled back is nested inside a higher-level commit scope, the lock may be released to either the TPF system or to the higher-level commit scope depending on whether the lock was previously part of the higher-level commit scope.
Programming Considerations
Examples