DB2 Scalar functions - CARDINALITY
The CARDINALITY function returns a value of type BIGINT representing the number of elements of an array.
The schema is SYSIBM.
For an:
The function returns 0 if the array is empty. The result can be null; if the argument is null, the result is the null value.
SET HOWMANYCALLS = CARDINALITY(RECENT_CALLS)
SET NUMCAPITALS = CARDINALITY(CAPITALS)