Strovent SystemsSign in
Reference

Fields and attributes

How a 3270 screen is divided into protected and input fields, and what the field attributes control.

A 3270 screen is a grid of character positions (for example 24 rows of 80). Some positions hold a field attribute. A field attribute takes one position on the screen, shows as a blank, and describes the field that starts there. The field runs until the next attribute.

What a field attribute sets

  • Protected or unprotected. You can type only in unprotected fields. Labels and headings are protected.
  • Numeric. A numeric field accepts digits and a few symbols only. A protected numeric field is special: see auto-skip below.
  • Display. Normal, intensified (bright), or non-display (nothing is shown, used for passwords).
  • Selectable. Whether the field can be chosen with a light pen. Light pens are rare now.
  • Modified data tag (MDT). A flag the terminal sets when you change anything in the field. On the next AID key the terminal sends only fields with the flag set.

In the data stream these are bit settings in one byte. For example 0x20 means protected, 0x10 numeric and 0x01 modified.

Extended attributes

Terminals that support extended attributes (the "-E" terminal types, see Screen models) can also set, per field or per character:

  • Color: blue, red, pink, green, turquoise, yellow, white, plus a default.
  • Highlighting: blink, reverse video, underscore.
  • Character set: for example APL.
  • Field validation: mandatory fill, mandatory entry, trigger.

Moving between fields

  • Tab moves to the start of the next unprotected field. Backtab goes back.
  • Auto-skip. When you fill an unprotected field and the next field is protected and numeric, the cursor jumps to the next unprotected field by itself.
  • New Line moves to the first unprotected field on the next line.

Unformatted screens

A screen with no field attributes is unformatted. The whole screen acts as one input area and every character you type is sent. Some host programs show an unformatted screen on purpose.

If a field will not take input

You are probably on a protected field, or the keyboard is locked. Press Reset, then Tab to the next input field. See Keyboard locked.

Spotted a mistake? Email [email protected].