Signed numeric (S)

You can only type the numbers 0 through 9 into the field (no blanks, no plus sign, no minus sign).

To leave the field, press the Field Exit key, the Field+ key, the Field- key, or a cursor movement key. If you do not type any data into the field, you can press the Enter key.

You should consider the following differences when you choose between signed numeric (S) and numeric only (Y):

For input-capable fields only, the display length for the field is one more than the length specified in positions 30 through 34. The farthest right position on the display is reserved for a minus sign.

The following considerations apply when the i5/OS™ operating system passes the contents of a signed numeric field to your program:

When an input-capable signed numeric field displays and you do not specify CHECK(RZ), the i5/OS operating system performs zero suppression by default (the EDTCDE and EDTWRD keywords are not valid for signed numeric fields).

Negative numbers are handled as follows:

For examples of signed numeric fields, and sample data typed into them, see the Data Type and Keyboard Shift Coding Example in the Date (L), Time (T), and Timestamp (Z) topic.