LENGTH4 scalar function

The LENGTH4 function returns the length of expression in 32-bit UTF-32 string units (CODEUNITS32).

Read syntax diagramSkip visual syntax diagramLENGTH4(expression)

The schema is SYSIBM.

expression
An expression that returns a value that is a built-in data type.

The LENGTH4 scalar function invoked with a character or graphic string as the argument is equivalent to invoking the LENGTH function with CODEUNITS32 specified. The LENGTH4 scalar function invoked with any other data type as the argument is equivalent to invoking the LENGTH function without a string units argument.