3270 Data Stream Programming

Extended Field Attributes

 

Introduction

In addition to the Start Field Extended to set attributes, the Set Attribute (SA) order may be used to set the same attributes.  The format of the SA order is:

Command Name Value Parameter 1 Parameter 2
SA 28 Attribute Type  Attribute Value

The Attributes for SA are the same as those used with SFE.  SA will not start a new field so the SF order must be used to start a new field.  The SA order can then be used to specify field attributes.

Extended Attribute Types

Type Code Extended Attribute Type
41 Extended Highlighting
42 Color

Extended Highlighting

The extended highlighting attribute defines the following characteristics.  Only one extended highlighting attribute can be specified.

Attribute Value

Attribute Meaning
00 Default
F1 Blink
F2 Reverse Video
F4 Underscore

Color

The color extended attribute type is used to override the default color for a field.

Attribute Value Color
00 Default
F1 Blue
F2 Red
F3 Pink
F4 Green
F5 Turquoise
F6 Yellow
F7 White

Putting It All Together

Start New Field Set Reverse Video Set Color Yellow
 SF   Protected   SA   Extended Highlighting   Reverse Video   SA   Color   Yellow 
1D F0 C0 41 F2 F2 42 F6

Next Page