RJUSTIFY( ) function

Returns a right-justified string the same length as a specified string, with any trailing spaces moved to the left of the string.

Syntax

RJUSTIFY(string)

Parameters

Name Type Description
string character The value to right-justify.

Output

Character.

Examples

Basic examples

Returns "   ABC":

RJUSTIFY("ABC   ")

Remarks

When to use RJUSTIFY( )

Use the RJUSTIFY( ) function to right-justify a character field.

ACL Scripting Guide 14.1