The system function SysLib.commit saves updates that were made to databases and MQSeries® message queues since the last commit. A generated Java™ program or wrapper also saves the updates done by a remote, CICS-based COBOL program (including updates to CICS® recoverable files), but only when the call to the remote COBOL program involves a client-controlled unit of work, as described in luwControl in callLink element.
SysLib.commit( )
In most cases, EGL performs a single-phase commit that affects each recoverable manager in turn. On CICS for z/OS®, however, SysLib.commit results in a CICS SYNCPOINT, which performs a two-phase commit that is coordinated across all resource managers.
SysLib.commit releases the scan position and the update locks in any file or databases.
When you use SysLib.commit with MQ records, the following statements apply:
You can enhance performance by avoiding unnecessary use of SysLib.commit. For details on when an implicit commit occurs, see Logical unit of work.
sysLib.commit();
Related concepts
Syntax diagram for EGL functions
Logical unit of work
MQSeries support
Run unit
SQL support
Related reference
commitOnConverse
segmentedMode
EGL library SysLib
luwControl in callLink element
open
prepare