$REVERJw. Format

Writes character data in reverse order and preserves blanks.
Category: Character
Alignment: right

Syntax

$REVERJw.

Syntax Description

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

put @1 name $reverj7.;
Name1
Result
----+----1
ABCD###
   DCBA
###ABCD
   DCBA
1The character # represents a blank space.