Rational Developer for System z
Enterprise COBOL for z/OS, Version 4.1, Programming Guide


Transforming to reverse order (REVERSE)

You can reverse the order of the characters in a string by using the REVERSE intrinsic function.

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.


Terms of use | Feedback

This information center is powered by Eclipse technology. (http://www.eclipse.org)