Skip to content

CTC

Commit Count

This numeric function returns the commit count from an SQL DataServer.

CTC (disk-specifier [,ERR=line-ref|,ERC=error-code])
disk-specifier
is a positive integer-value or string-value containing the name of a logical disk directory.
line-ref
is the program line number or label to branch to if an error is produced by this function.
error-code
is a programmer-defined error code. Valid values are positive or negative whole numbers.

This function is generally available starting with release level 8.6.1.

If an invalid disk device is specified, an ERR=14 results.

If the specified disk device does not access one of the SQL DataServers , an ERR=14 results.

If there is a problem communicating with the specified SQL DataServer, an ERR=150 results.

Starting with release 8.7.1, disk devices DA-DZ and Da-Dz can be referenced by disk number.

C = CTC(“DS”)

returns the commit count from the SQL DataServer accessed via disk device DS.

SET CTC directive

From the Thoroughbred Basic Language Reference, Volume I: A–E, version 8.9.1. Open this page in the PDF