RPG/400 Help
You can use simple edit codes to edit numeric fields without adding any
punctuation. The simple edit codes and their functions are:
- The X edit code ensures a hexadecimal F sign for positive fields.
However, because the system does this, you normally do not have to specify
this code. Leading zeros are not suppressed. The X edit code
does not modify negative numbers.
- The Y edit code is normally used to edit a three- to seven-digit date
field. The Y edit code suppresses only the leftmost zero; however,
if the field is seven positions long, the two leftmost positions are
zero-suppressed. Positions 20 (date edit) and 21 (decimal notation) of the control specification can be
used to alter edit formats.
- The Z edit code removes the sign (plus or minus) from and suppresses the
leading zeros of a numeric field. The decimal point is not placed in
the field and is not printed.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
(C) Copyright IBM Corporation 1992, 2006. All Rights Reserved.