The REVERSE function returns a character string of exactly the same length as argument-1 and whose characters are exactly the same as those of argument-1, except that they are in reverse order. The type of this function is alphanumeric.
FUNCTION REVERSE (argument-1)
argument-1 | Must be class alphabetic or alphanumeric, and must be at least one character in length. |
If argument-1 is a character string of length n, the returned value is a character string of length n such that for 1< j < n, the character in position j of the returned value is the character from position n-j+1 of argument-1.