RIGHTB function

In languages that use the double-byte character set, RIGHTB returns the specified number of bytes at the end of a text string.

Syntax

RIGHTB (text, number)

RIGHTB counts punctuation and spaces as characters. If the first byte of the returned text is the last half of a double-byte character, RIGHTB replaces the incomplete character with a space.

Example

RIGHTB("Single byte",4) returns byte.




Trademarks | IBM Connections wiki