CSIZE

The CSIZE function returns an integer representing the size of a specified object in characters, exclusive of any pad characters.

Syntax:
CSIZE (single object expression)
Meaning:
CSIZE (object whose size is needed)
Returns:
A single integer
Example
This example shows how the CSIZE function differs from the SIZE function.
The SIZE function returns the number of bytes used to represent those symbolic characters in a particular code page.
The CSIZE function returns the number of symbolic characters.
Symbolic text: Mañana
UTF-8 hexadecimal representation : 0x4D 0x61 0xC3 0xA3 0x61 0x6E 0x61
SIZE(Mañana)
Returns 7 bytes
CSIZE(Mañana)
Returns 6 characters