6 9 LceCommitWork

LANSA Open Guide

6.9 LceCommitWork

Commits the current transaction if LceSetCommitmentOn has been set.

BOOL 

LceCommitWork

(int

iSession )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

Return Values

TRUE is returned if the session can perform the function.

FALSE is returned if an error occurs.

Notes

This function is used to set a commit point for a transaction or set of transactions on the host.

  • To use LceCommitWork, an LceSetCommitmentOn function must be executed before the session is opened.
  • This function can only be executed after a session has been opened.

Commitment control allows you to recreate events from a specific point which would otherwise be lost due to a system or application failure. Host commitment control only applies to files for which it has been specified. It is your responsibility to ensure that commitment control has been properly configured on the host.

Refer to the appropriate host database manuals and Commitment Control in the LANSA Application Design Guide and Using Commitment Control in the LANSA for iSeries User Guide for more details about commitment control and commitment control processing.

Related Functions

6.54 LceSetCommitmentOff

6.55 LceSetCommitmentOn

6.52 LceRollBackWork