IFCMTR (HLI function): Difference between revisions

From m204wiki
Jump to navigation Jump to search
(Created page with "==IFCMTR call -mc== ===Function=== <dl> <dt>Description</dt> <dd>The IFCMTR call (COMMIT RELEASE) releases all record sets held by the thread and commits the current transact...")
 
No edit summary
Line 1: Line 1:
==IFCMTR call -mc==


===Function===
==Summary==
<dl>
<dl>
<dt>Description</dt>
<dt>Description</dt>
<dd>The IFCMTR call (COMMIT RELEASE) releases all record sets held by the thread and commits the current transaction.</dd>
<dd>The IFCMTR call (COMMIT RELEASE) releases all record sets held by the thread and commits the current transaction.</dd>
</dl>
<dt>Thread type</dt>
<dt>Thread type</dt>
<dd>multiple cursor IFSTRT</dd>
<dd>multiple cursor IFSTRT</dd>
<dt>IFCALL function number</dt>
<dt>IFCALL function number</dt>
<dd>105</dd>
</dl>


===Full syntax (105)===
==Syntax==
<p class="syntax">IFCMTR(RETCODE)</p>
<p class="syntax">IFCMTR(RETCODE)</p>
<dl>
<dt>Compile-only form</dt>
<dd>Not available</dd>
<dt>Execute-only form</dt>
<dd>Not available</dd>
</dl>


===Compile-only syntax===
<p>
A compile-only form of IFCMTR is not available.</p>
===Execute-only syntax===
<p>
An execute-only form of IFCMTR is not available.</p>
===Parameters===
<table>
<table>
<tr class="head">
<tr class="head">
Line 34: Line 30:
</table>
</table>


===Notes and tips===
==Usage notes==
<p>
<p>
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 [[Files, groups, and reference context#Using COMMIT and COMMIT RELEASE statements|Using COMMIT and COMMIT RELEASE statements]].</p>
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 [[Files, groups, and reference context#Using COMMIT and COMMIT RELEASE statements|Using COMMIT and COMMIT RELEASE statements]].</p>
Line 40: Line 36:
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.</p>
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.</p>


===Coding example (COBOL)===
==Coding example (COBOL)==
<p class="code">WORKING-STORAGE SECTION.
<p class="code">WORKING-STORAGE SECTION.
01  CALL-ARGS.
01  CALL-ARGS.
Line 52: Line 48:
.
.
   CALL "IFCMTR" USING RETCODE.</p>
   CALL "IFCMTR" USING RETCODE.</p>
[[Category: HLI functions]]

Revision as of 21:34, 5 July 2016

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.