Notes on Using This Function

The returned field attributes are defined in the following tables. The bit positions are in IBM format with bit 0 as the left most bit in the byte.
  • 3270 field attribute:
Bit Position Meaning
0–1 Both = 1, field attribute byte
2 Unprotected/protected
  • 0 = Unprotected data field
  • 1 = Protected field
3 A/N
  • 0 = Alphanumeric data
  • 1 = Numeric data only
4–5 I/SPD
  • 00 = Normal intensity, pen not detectable
  • 01 = Normal intensity, pen detectable
  • 10 = High intensity, pen detectable
  • 11 = Nondisplay, pen not detectable
6 Reserved
7 MDT
  • 0 = Field has not been modified
  • 1 = Field has been modified
Bit Position Meaning
0 Field attribute flag
  • 0 = Nonfield attribute flag
  • 1 = Field attribute flag
1 Visibility
  • 0 = Nondisplay
  • 1 = Display
2 Unprotected/protected
  • 0 = Unprotected data field
  • 1 = Protected field
3 Intensity
  • 0 = Normal intensity
  • 1 = High intensity
4–6 Field type
  • 000 = Alphanumeric data: All characters are available
  • 001 = Alphabet only: Uppercase and lowercase, comma, period, hyphen, blank, or Dup key are available
  • 010 = Numeric shift: Automatic shift for number
  • 011 = Numeric data only: 0–9, comma, period, plus, minus, blank, or Dup key are available
  • 101 = Numeric data only: 0–9, or Dup key are available
  • 110 = Magnetic stripe reading device data only
  • 111 = Signed-numeric data: 0–9, plus, minus, or Dup key are available
7 MDT
  • 0 = Field has not been modified
  • 1 = Field has been modified