IBM Integration Bus, Version 9.0.0.8 Operating Systems: AIX, HP-Itanium, Linux, Solaris, Windows, z/OS

See information about the latest product version

LENGTH function

The LENGTH function is used for string manipulation on all string data types (BIT, BLOB, and CHARACTER) and returns an integer value giving the number of singletons in source_string.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-LENGTH--(--source_string--)---------------------------------><

It If the source_string is NULL, the result is the NULL value. The term singleton refers to a single part (BIT, BYTE, or CHARACTER) within a string of that type.

For example:
LENGTH('Hello World!');
returns 12.
LENGTH('');
returns 0.

ak05200_.htm | Last updated Friday, 21 July 2017