Figure 2.6. Attributes That Can Be Specified With The Dspatr Keyword - IBM 5280 Programmer's Manual

Distributed data system, cobol
Hide thumbs Also See for 5280:
Table of Contents

Advertisement

Attribute
BL
CA
CS
HI
ND
RI
UL
Field Description Statement
Meaning
Blink. The displayed field(s) blinks (flashes on and off).
Cancel. When specified in a field description statement,CA cancels
display attributes made in the record description statement. Use CA
when an attribute or characteristic specified in the record description
statement isn't desirable for the field being defined. Other parameters
can then be specified to control the display for the record. The
parameter CA affects only the field description statement for which it is
coded.
Column Separators. Column separators are displayed in the field(s).
Column separators are thin vertical lines between character positions;
they do not reduce display capacity.
Highlight. The displayed characters are highlighted (displayed with
increased intensity).
Nondisplay. The field(s) in the record aren't displayed.
Reverse image. The field(s) in the record is displayed with images
reversed (dark characters are displayed on a light background).
Underline. Each character in the field(s) is underlined.
Figure 2.6. Attributes that can be specified with the DSPATR keyword
Placement of Attribute Control Characters
A DSPATR causes control characters to be placed in the first position before
and the first position after a field. (the control characters do not appear on
the screen). Keep the following in mind when you code the Location field
(columns 39-44):
1. The position immediately before, and immediately after the field must be
blank. You control whether a position is blank or not by what you specify
in the Position field (columns 42-44) and the Length field (columns 30-34).
2. If two or more fields with display attributes follow in succession:
- A blank position must precede the first field. If the field begins in
column 1, column 80 of the previous line must be blank.
- At least one blank position must be between each two fields.
- One blank position must follow the last field.
3. Rules (1) and (2) are valid regardless of the number of attributes (RI, UL,
BL, etc.) you specify.
uNote: Make sure the positions in which display attributes are assigned are
cleared before a new screen format is written to the screen. If these positions
are not cleared, the display attributes will apply to the new format. (You can
clear the positions desired by writing a blank record to the screen.)
Assume, using the following Data Definition Statements, that EMPFILE has
been written to the screen with a STARTING AT LINE value of 5, causing
the field to appear on line 5, column 1. A control character for column
separators (CS) will be placed in line 4, column 80:
----+----1----+----2----+----3----+----4----+----5----+----6----+
A
R EMPFILE
A
EMPNO
5D
B 01 01DSPATR(CS)
Chapter 2. Transaction I/0 - Screen Definition
2- 23

Advertisement

Table of Contents
loading

Table of Contents