Transforming to reverse order (REVERSE)
You can reverse the order of the
characters in a string by using the REVERSE
intrinsic
function.
About this task
Move Function Reverse(Orig-cust-name) To Orig-cust-name
For example, the statement above reverses the order of the
characters in Orig-cust-name
. If the starting value
is JOHNSONbbb
,
the value after the statement is
performed is bbbNOSNHOJ
,
where b
represents
a blank space.