ILE COBOL Language Reference


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------'
 
 

Notes:

  1. 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----------------------------+

The JUSTIFIED clause is not allowed for:

+-------------------------------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).

When the JUSTIFIED clause is specified for a receiving item, the data is aligned at the rightmost character position in the receiving item. Also:

The JUSTIFIED clause does not affect initial values, as determined by the VALUE clause.


[ Top of Page | Previous Page | Next Page | Table of Contents | Index ]