Product Documentation

Automatic Data Aggregation

Previous Topic

Next Topic

UpdateAutoSysTimeFields()

Similar to AddAutoSysTimeFields, but used to update an existing definition. The definition passed in replaces the existing one.

NINT UpdateAutoSysTimeFields(COUNT datno, pA_STFIELDS defs)

Parameters:

  • datno: the data file number
  • pDefs: Auto System Timestamp definition.

Returns:

NO_ERROR on Success. Otherwise error code.

Example:

IFIL vcustomer = {

"vcusti",

-1,

8,

4096,

ctSHARED | ctVLENGTH | ctTRNLOG,

1,

4096,

ctSHARED | ctTRNLOG,

ndxs,

"CustomerNumber",

"City"

};

NINT rc;

#define CUSTDAT vcustomer.tfilno /* customer data file */

if ((rc = UpdateAutoSysTimeFields(CUSTDAT, &autoST))) {

ctrt_printf("Error: Failed to update Auto System Time fields (after update): %d\n",

rc);

goto err_ret;

}

TOCIndex