Previous Topic: Invert SignNext Topic: Length


Left Justify

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

Syntax:

►►─┬─ LEFT ─────────┬─ (string) ──────────────────────────────────────────────►◄
   ├─ LEFJUS ───────┤
   ├─ LEFT-JUST ────┤
   └─ LEFT-JUSTIFY ─┘

Invocation names:

LEFT
LEFJUS
LEFT-JUST
LEFT-JUSTIFY

Parameters:

(string)

Specifies the string value on which the left-justify function is performed.

Example:

This example left justifies the value contained in EMP-LAST-NAME-0415 (PIC X(15)): The value of EMP-LAST-NAME-0415 is ' OTT '.

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

  'OTT                '