DB2 Scalar functions - TRIM_ARRAY
The TRIM_ARRAY function deletes elements from the end of an array.
The schema is SYSIBM.
The function returns a value with the same array type as the array expression but with the cardinality reduced by the value of INTEGER(numeric-expression).
The result can be null; if either argument is null, the result is the null value.
SET RECENT_CALLS = TRIM_ARRAY(RECENT_CALLS, 1)
SET EULER_CONST = TRIM_ARRAY(SPECIALNUMBERS, 8)