About ACEAPI SQL Functions

Each SAGQ* SQL function requires an anchor. This must be declared as a 4 byte integer global variable.

Before calling the first function, anchor must be initialized to zero, i.e. int anchor = 0;.