Display Attributes for Input-Capable Fields for Display Files

The following are attributes for input-capable fields:

MDT (Set Changed Data Tag) for Display Files

Use this attribute to specify that the OS/400 program is to set on the changed data tag (MDT) for the field you are defining when the field is written to the display. The attribute ensures that the field is sent from the device when the record is read from the display.

Note:
The OS/400 program saves output data for output/input fields or initialized data for fields with the DFT keyword specified. This causes the saved data to be returned on an input operation if no new (changed) data is entered into the field.

OID (Operator Identification) for Display Files

Use this attribute to specify that the OS/400 program is to allow magnetic stripe reader OID data to be entered into this field. If it is to be a nondisplay field also, the DSPATR(ND) attribute must be specified.

A field with the DSPATR(OID) keyword functions like any other input-capable field; data can be entered from either the keyboard or the magnetic stripe reader. The DSPATR(OID) keyword can be specified (but is not required) to indicate that data can be entered using a magnetic stripe reader. You can key into the field unless the keyboard shift Inhibit Keyboard Entry (I) is specified. If both DSPATR(OID) and DSPATR(SP) are specified on the same field, DSPATR(SP) is ignored.

PR (Protect) for Display Files

Use this attribute to specify that the work station user cannot key into the input-capable field you are defining. This attribute is valid for input-capable fields only. Output-only fields and constant fields are protected by definition.

SP (Select by Light Pen) for Display Files

Use this attribute to specify that this input-capable field can be selected by a light pen. The work station user can key into a light pen field unless an I (Inhibit Keyboard Entry) has been specified in position 35 (Data Type/Keyboard Shift) for the field.

When the field is first displayed, the contents of the field are set by your program (output/input field) or in the DDS (input-only field with DFT keyword or character string). If no new data is typed in by the work station user, this output data is returned to your program on an input operation.

A field that can be selected by a light pen should be at least 3 bytes long. The recommended contents of this field are:

This attribute is useful only for work stations with a light pen feature for selecting.