>>-+-INTEGER-+--(----+-numeric-expression---+--)--------------->< '-INT-----' '-character-expression-'
The schema is SYSIBM.
The INTEGER function returns an integer representation of a number or character string in the form of an integer constant.
If the argument is a numeric-expression, the result is the same number that would occur if the argument were assigned to a large integer column or variable. If the whole part of the argument is not within the range of integers, an error occurs. The decimal part of the argument is truncated if present.
If the argument is a character-expression, the result is the same number that would occur if the corresponding integer constant were assigned to a large integer column or variable.
The result of the function is a large integer. If the argument can be null, the result can be null; if the argument is null, the result is the null value.
Examples:
SELECT INTEGER (SALARY / EDLEVEL), SALARY, EDLEVEL, EMPNO FROM EMPLOYEE ORDER BY 1 DESC
SELECT INTEGER(EMPNO) FROM EMPLOYEE