$REVERSw. Format

Writes character data in reverse order and left aligns

Category: Character
Alignment: Left

Syntax

$REVERSw.

Syntax Description

w

specifies the width of the output field.

Default 1 if w is not specified
Range 1–32767

Comparisons

The $REVERSw. format is similar to the $REVERJw. format except that $REVERJw. does not left align the result.

Example

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