Numeric only character (M)

The M keyboard shift defines a character field that allows you to type only the digits 0 through 9, plus (+), minus (-), comma (,), period (.), and blank into the field.

The Field Exit, Field+ Exit, Field- Exit, and Dup keys are allowed. The Field+ Exit is processed as an unsigned Field Exit. The Field- Exit is processed as follows:

The display length for an M field is the length coded in positions 30 through 34. You must include any additional positions needed for a sign character or decimal point in the field length.

The field displays as a blank-filled field when you do not specify any keyword. If you specify a CHECK(RZ) keyword, the field displays as right-aligned zero. If you specify a CHECK(RB) keyword, the field displays as right-aligned blank filled.

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

In a database file, you can specify the M keyboard shift on the REFSHIFT keyword if the field data type is character (A).