JUSTIFIED Clause
The JUSTIFIED clause overrides standard positioning rules for a receiving item of the alphabetic or alphanumeric categories.
JUSTIFIED Clause - Format >>-+-JUSTIFIED-+--+-----------+-------------------------------->< '-JUST------' | (1) | '-RIGHT-----'
- Syntax-checked only
The JUSTIFIED clause may be specified only at the elementary level. RIGHT is an optional word that is syntax checked only and has no effect on the execution of the program.
The JUSTIFIED clause cannot be specified for numeric or numeric-edited items.
IBM Extension It can be specified for DBCS, DBCS-edited, and national items. End of IBM Extension
- Level-66 (RENAMES) entries
- Level-88 (condition-name) entries
- Items described with the USAGE IS INDEX clause
- Items described with the USAGE IS POINTER clause
- Items described with the USAGE IS PROCEDURE-POINTER clause
- External or internal floating-point items
- Items with the TYPE clause.
IBM Extension The JUSTIFIED clause can be specified for an alphanumeric-edited item. End of IBM Extension
When the JUSTIFIED clause is omitted, the rules for standard alignment are followed (see Alignment Rules).
- If the sending item is larger than the receiving item, the leftmost characters are truncated.
- If the sending item is smaller than the receiving item, the unused character positions at the left are filled with spaces.
The JUSTIFIED clause does not affect initial values, as determined by the VALUE clause.
