JUSTIFIED Clause

The JUSTIFIED clause specifies alternate data positioning rules for alphanumeric data.

General Format

{JUSTIFIED} RIGHT
{JUST     }

Syntax Rules

  1. JUST is an abbreviation for JUSTIFIED.
  2. The JUSTIFIED clause may be used for elementary items only.
  3. The JUSTIFIED clause may not be used on index, numeric, or edited data items. It may be used only on alphabetic and alphanumeric data items.

General Rules

When an operation transfers data to an item described with the JUSTIFIED clause, the standard alignment rules are altered.

  1. If the sending item is larger than the receiving item, excess characters are truncated from the left.
  2. If the sending item is smaller than the receiving item, data is aligned at the rightmost character position of the receiving item. The excess characters on the left are filled with spaces.