Returns the number of COMPUTE clauses in the current set of results.
INT dbnumcompute ( PDBPROCESS dbproc );
The number of COMPUTE clauses in the current set of results.
Call this function after dbresults has returned SUCCEED.
In this example, dbnumcompute (dbproc) returns 2, because there are two COMPUTE clauses in the SELECT statement:
SELECT dept, name FROM employee
ORDER BY dept, name
COMPUTE COUNT(name) BY dept
COMPUTE COUNT(name)
dbnumalts | dbresults |