Library View Topics Framed Contents Revised Topics Previous Topic Next Topic Search Search ResultsPrevious Topic MatchNext Topic Match Notes List Notes Print Download No PDF Handheld DisconnectedHandheld ConnectedHelp

5.1.6.6 Alignment Rules



The standard alignment rules for positioning data in an elementary item depend on the category of a receiving item (that is, an item into which the data is moved; see "Elementary Moves" in topic 6.2.24.1).

Numeric
For such receiving items, the following rules apply:

  1. The data is aligned on the assumed decimal point and, if necessary, truncated or padded with zeros. (An assumed decimal point is one that has logical meaning but that does not exist as an actual character in the data.)
    
    
  2. If an assumed decimal point is not explicitly specified, the receiving item is treated as though an assumed decimal point is specified immediately to the right of the field. The data is then treated according to the preceding rule.
    
    

Numeric-edited
The data is aligned on the decimal point, and (if necessary) truncated or padded with zeros at either end, except when editing causes replacement of leading zeros.


X Internal Floating-point

X A decimal point is assumed immediately to the left of the field.
X The data is aligned then on the leftmost digit position
X following the decimal point, with the exponent adjusted
X accordingly.


X External Floating-point

X The data is aligned on the leftmost digit position; the exponent
X is adjusted accordingly.

Alphanumeric, Alphanumeric-Edited, Alphabetic, DBCS
For these receiving items, the following rules apply:

  1. The data is aligned at the leftmost character position, and (if necessary) truncated or padded with spaces at the right.
    
    
  2. If the JUSTIFIED clause is specified for this receiving item, the above rule is modified, as described in "JUSTIFIED Clause" in topic 5.3.9.
    
    

>_Workstation_> Under AIX, OS/2, and Windows, using control characters X'00' through X'1F' within an alphanumeric literal can give unpredictable results, which are not diagnosed by the compiler. Use hex literals instead. <_Workstation_<


Previous Topic Next Topic © Copyright IBM Corp. 1991, 1998

IBM Library Server Copyright 1989, 2005 IBM Corporation. All rights reserved.





Return to library:   z/OS | z/OS.e | TPF | z/VSE | z/VM | IBM Hardware | IBM System z Redbooks
Glossary:   IBM terminology
Publications:   How to order publications
Readers:   Download IBM Library Reader | Download IBM Softcopy Reader | Download Adobe® Acrobat® Reader®
Library management:   Download IBM Softcopy Librarian
Contacts:   Contact z/OS


Adobe, the Adobe logo, Acrobat, the Acrobat logo, and Acrobat Reader are registered trademarks of Adobe Systems incorporated.