Queries or starts or stops recording delete history. Delete history is a log of delete activity that can be turned on and off.
Authorization
Administrator; user (FLG_ACTION_GET only)
Syntax
APIRET APIENTRY FLGManageFlags( FLGOPTIONS Action,
FLGOPTIONS FlagType,
UCHAR chValue,
UCHAR * pchValue,
PFLGEXTCODE pExtCode );
Parameters
See Appendix D, Information Catalog Manager reason codes for an explanation of the returned reason codes.
Usage
Controlling updates to your information catalog
To keep your program as synchronized as possible with your information catalog, you should include a call to FLGCommit (see FLGCommit) after FLGManageFlagssuccessfully updates flags. If FLGManageFlags does not update flags successfully, you should include a call to FLGRollback (see FLGRollback).
Figure 122 shows the C language code required to issue the FLGManageFlags call. This sample code enables logging of the delete history.
Figure 122. Sample C language call to FLGManageFlags
APIRET rc; // reason code for API
FLGOPTIONS Action=0;
FLGOPTIONS Type=0;
UCHAR chValue=FLG_YES;
FLGEXTCODE xc=0; // extended code
.
.
.
Action= Action | FLG_ACTION_UPDATE;
Type = Type | FLG_HISTORY_TYPE_DELETE;
rc = FLGManageFlags (Action,
Type,
chValue,
NULL,
&xc);