6 55 LceSetCommitmentOn

LANSA Open Guide

6.55 LceSetCommitmentOn

Turns on commitment control on the host system.

 

LceSetCommitmentOn

(int

iSession )

  

Parameters

iSession

The session identifier as returned by LceGetSessionId.

  

Return Values

TRUE is returned if commitment control has been successfully turned on.

FALSE is returned if an error occurs.

Notes

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 IBM 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.

This function must be executed before you can use the LceCommitWork or LceRollBackWork functions. 

You must end this session if you wish to switch commitment control off.

  • This function must be executed before the LceOpenSession function.
  • This function performs no communications to the host.

Related Functions

6.54 LceSetCommitmentOff

6.9 LceCommitWork

6.52 LceRollBackWork