$REVERJw. Format

Writes character data in reverse order and preserves blanks.

Category: Character
Alignment: Right

Syntax

$REVERJw.

Arguments

w

specifies the width of the output field.

Default 1 if w is not specified
Range 1–32767

Comparisons

The $REVERJw. format is similar to the $REVERSw. format except that $REVERSw. left aligns the result by trimming all leading blanks.

Example

Statements1
Results1
----+----1
select put('ABCD###',$reverj7.);
   ###DCBA
select put('###ABCD',$reverj7.);
   DCBA###
1The character # represents a blank space.

See Also

Formats:
Last updated: February 23, 2017