Numeric only (Y)

You can only type the numbers 0 through 9, plus (+), minus (-), period (.), comma (,), and space ( ) into the field. You can press any key to leave the field.

The display length for a numeric-only field is one more than the program length when both of the following conditions occur (the program length is specified in positions 30 through 34):

The extra position in the display length is for the decimal point.

When the i5/OS™ operating system passes the contents of the field to your program, the following considerations apply:

When the i5/OS operating system displays a numeric-only field, the EDTCDE or the EDTWRD keyword, if specified, applies. You can specify EDTCDE and EDTWRD only for numeric-only fields. The display length equals the program length plus the editing characters from the specified edit code or edit word.

Negative numbers are handled as follows:
Note: The i5/OS program examines each character of a numeric-only field to remove the nonnumeric characters plus sign (+), minus sign (-), comma (,), and decimal point(.) and nonsignificant digits, and to convert embedded blanks to zeros. This examination and removal can delay response time if a significant number of fields must be processed on an input operation.
Related concepts
Numeric shift (N)
Related reference
EDTCDE (Edit Code) keyword for display files
EDTWRD (Edit Word) keyword for display files