REVERSE: Reversing the Characters in a String

How to:

The REVERSE function reverses the characters in a string.


Top of page

x
Syntax: How to Reverse the Characters in a String
REVERSE(length, source_string, output)

where:

length

Integer

Is the number of characters in source_string and output.

source_string

Alphanumeric

Is the character string to reverse.

output

Alphanumeric



Example: Reversing the Characters in a String

REVERSE reverses the characters in PRODCAT and stores the result in a column with the format A15:

REVERSE(15, PRODCAT, 'A15')

For VCRs, the result is sRCV.

For DVD, the result is DVD.


iWay Software