IFCMTR (HLI function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
No edit summary
No edit summary
 
Line 1: Line 1:
The conventions used on this page are described in [[HLI: Function call list#Function call notation conventions|Function call notation conventions]].
The conventions used on this page are described in [[HLI: Function summary#Function call notation conventions|Function call notation conventions]].


==Summary==
==Summary==

Latest revision as of 22:07, 12 July 2016

The conventions used on this page are described in Function call notation conventions.

Summary

Description
The IFCMTR call (COMMIT RELEASE) releases all record sets held by the thread and commits the current transaction.
Thread type
multiple cursor IFSTRT
IFCALL function number
105

Syntax

IFCMTR(RETCODE)

Compile-only form
Not available
Execute-only form
Not available
Parameter Description
RETCODE [O,i,r] The Model 204 return code is the only required parameter. The code is a binary integer value.

Usage notes

Use the IFCMTR call to end the current transaction and release all records. The IFCMTR call is the equivalent of the SOUL COMMIT RELEASE statement in the host language multiple cursor environment. For more information, see Using COMMIT and COMMIT RELEASE statements.

To ensure that all of the records and resource locks associated with a transaction are released after the IFCMTR call executes on one of the single cursor IFSTRT threads in a multithreaded transaction, issue IFCMTR on all of the other single cursor IFSTRT threads participating in the transaction.

Coding example (COBOL)

WORKING-STORAGE SECTION. 01 CALL-ARGS. 05 RETCODE PIC 9(5) COMP SYNC. . . . PROCEDURE DIVISION. . . . CALL "IFCMTR" USING RETCODE.