length as a function
LENGTH Function. Returns the length of a non-blank character string, excluding trailing blanks, and returns 1 for a blank character string. The LENGTH function returns a length in bytes, while the KLENGTH function returns a length in a character based unit. Syntax.