The standard rules for positioning data within an elementary item depend on the category of the receiving item. These rules
are:
- If the receiving data item is described as numeric:
- The data is aligned by decimal point and is moved to the receiving character positions with zero fill or truncation on either
end as required
- When an assumed decimal point is not explicitly specified, the data item is treated as if it had an assumed decimal point
immediately following its rightmost character and is aligned as in paragraph a. above.
- If the receiving data item is a numeric edited data item, the data moved to the edited item is aligned by decimal point with
zero fill or truncation at either end as required within the receiving character positions of the data item, except where
editing requirements cause replacement of the leading zeros.
- If the receiving data item is alphanumeric (other than a numeric edited data item), alphanumeric edited or alphabetic, the
sending data is moved to the receiving character position and aligned at the leftmost character position in the data item
with space fill or truncation to the right, as required.
- If the receiving data item is external floating-point, the leftmost non-zero digit, if one exists, is aligned on the leftmost
digit position: the exponent is adjusted accordingly.
If the JUSTIFIED clause is specified for the receiving item, these standard rules are modified as described in the section
The JUSTIFIED Clause in the chapter Data Division - File and Data Description.