Both types of keyboards are in lowershift. All characters are valid for entry.
yyyy-mm-dd-hh.mm.ss.mmmmmmWhere yyyy = year, mm = month, dd = day, hh = hour, mm = minute, ss = second, and mmmmmm = microsecond.
Decimal positions (DDS positions 36 and 37) support only values of period (.). Valid field usage (DDS position 38) can be O, B, or I.
It is the responsibility of the high-level language and the application to format the date, time, and timestamp fields correctly on output. The system does not format fields on output. Date and time fields should be formatted according DATFMT and TIMFMT keywords formats and use the separators specified for the DATSEP and TIMSEP keywords. You should use the standard timestamp format (yyy-mm-dd-hh.mm.ss.mmmmmm) for timestamp fields.
The system validates date-, time-, and timestamp-capable fields on input when the modified data tag (MDT) for a field is set to the on position. You can turn on the MDT for a field by either typing into the field or by specifying DSPATR(MDT) on the field. If the MDT for a field is turned off, the saved contents of the field return to the application. When the MDT is on for a field, date and time fields are evaluated according to the following items:
Timestamp fields are evaluated according to the standard timestamp format (yyyy-mm-dd-hh.mm.ss.mmmmmm).
You can enter date, time, and timestamp field values with or without separators. When you enter a value without separators, leading zeros are inserted when necessary. The system includes the separators in the data that are passed back to the application. When you enter a value with separators, leading zeros are inserted up to the first separator when necessary. A value that is entered with separators cannot start with a separator. Leading and trailing blanks are ignored.
You can enter timestamp field values with or without separators. The system inserts leading or trailing zeros for timestamp fields. If you enter the field with separators, you must enter 20 digits and 6 separator characters.
You can enter the following field level keywords with these data types:
ALIAS | ERRMSGID |
CHANGE | FLDCSRPRG |
CHGINPDFT | INDTXT |
CHRID | MAPVAL |
COLOR | NOCCSID |
DATFMT (L) | OVRATR |
DATSEP (L) | OVRDTA |
DFT | PUTRETAIN |
DFTVAL | REFFLD |
DLTEDT | SFLCSRPRG |
DLTCHK | TEXT |
DSPATR | TIMFMT (T) |
ENTFLDATR | TIMSEP (T) |
ERRMSG |
|...+....1....+....2....+....3....+....4....+....5....+....6....+....7....+....8 00100A* 00200A* KEYBOARD SHIFT ATTRIBUTES 00300A CHARA 5 I 2 2 00400A CHARB 5 I 3 2CHECK(RB) 00500A CHARC 5 I 4 2CHECK(RZ) 00600A CHARD 5X I 4 30 00700A CHARE 5M I 4 40 00800A CHARF 5D I 4 50 00900A SIGN1 5 OI 5 2 01000A SIGN2 5 2B 5 30 01100A NBR1 5Y OI 6 2 01200A NBR2 5Y 2I 6 15 01300A NBR3 5Y 2B 6 30EDTCDE(L) 01400A NBR4 5N 2I 6 40 01500A NBRZ 5 H 01600A FLPT 7F 4I 7 2 01700A DATE L B 7 30DATFMT(*JUL) DATSEP('/') 01750A DATE1 L B 7 40DATFMT(*MDY) DATSEP('/') 01800A TIME T B 8 2 01900A TSTMP Z I 7 30 A
Except where indicated, you enter the data only by pressing a command function key. The fourth entry under SIGN1 is an exception. You make that entry by pressing the Field Exit key.
The following table refers to fields defined in Figure 1.
Field name (keyboard shift) | As typed in by the workstation user | As passed to your program |
---|---|---|
CHARA (Alphanumeric shift) |
|
|
CHARB (Alphanumeric shift) |
|
|
CHARC (Alphanumeric shift) |
|
|
CHARD (Alphabetic only) |
|
|
CHARE (Numeric only character) |
|
|
CHARF (Digits only) |
|
|
SIGN1 (Signed numeric) |
|
|
SIGN2 (Signed numeric) |
|
|
NBR1 (Numeric only) |
|
|
NBR2 (Numeric only) |
|
|
NBR3 (Numeric only) | Input processing is the same as for NBR2. | |
NBR4 (Numeric shift) |
|
|
NBRZ (Hidden field) | This is a hidden field and does not appear on the display. | |
FLPT (Floating point) |
|
|
DATE (Date) |
|
|
DATE1 (Date) |
|
|
TIME (Time) |
|
|
TSTMP (Timestamp) |
|
|
Note: The internal
representation of K is hex D2. All nonnumeric characters (including those
with hex D in the zone portion) are deleted with no place value. For example,
5_KAK_ becomes 5020}.
|