Previous Topic: Random NumberNext Topic: Sign Value


Right Justify

The right-justify function returns the string that results from:

Syntax:

►►─┬─ RIGHT ─────────┬─ (string) ─────────────────────────────────────────────►◄
   ├─ RIGHTJUS ──────┤
   ├─ RIGHT-JUST ────┤
   └─ RIGHT-JUSTIFY ─┘

Invocation names:

RIGHT
RIGHTJUS
RIGHT-JUST
RIGHT-JUSTIFY

Parameters:

(string)

Specifies the string value that is right justified.

Example:

This example right justifies EMP-LAST-NAME-0415 (PIC X(15)). The initial value of EMP-LAST-NAME-0415 is ' OTT '.

select rightjus(emp-last-name-0415) from employee

  '                 OTT'