>>-LENGTH--(--expression--)------------------------------------><
The schema is SYSIBM.
The LENGTH function returns the length of a value.
The argument can be an expression that returns a value of any built-in data type.
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.
The result is the length of the argument. The length does not include the null indicator byte of column arguments that allow null values. The length of strings includes blanks but does not include the length control field of varying-length strings. The length of a varying-length string is the actual length, not the maximum length.
The length of a graphic string is the number of DBCS characters. The length of all other values is the number of bytes used to represent the value:
Examples:
LENGTH(:ADDRESS)
Returns the value 18.
LENGTH(START_DATE)
Returns the value 4.
LENGTH(CHAR(START_DATE, EUR))