ENABLE Reference Manual

ENABLE SCREENS
General Format of the Standard Screen
Field as Defined in Resulting Field as Displayed
a Record Description Data Type on the Screen_____
02 sex PIC A. Alphabetic SEX _
02 location PIC X(3). Alphanumeric LOCATION ___
02 age PIC 99. Numeric AGE __
02 emp-no PIC 9(8) Numeric EMP-NO __________
USAGE IS COMP.
02 vacation PIC S9(2). Numeric VACATION ___
For T16-651x terminals, underscore characters (_) indicate
field length. The screen fields are similar to those shown
in the preceding table.
For all terminals, the SCREEN SECTION defines numeric
fields as PIC Z(n) and alphanumeric fields as PIC X.
• Numeric fields defined with embedded decimal points, such as
PIC 9(4)V99, appear with the decimal and all following digits
explicitly displayed as follows:
SALARY .00
The screen section of the application defines these fields as
PIC Z(n).9(m).
Values Entered in Screen Fields
When you enter a value in a screen field, that value must conform
to the data type of the screen field. Four broad categories of
data types exist. They are:
• Alphabetic You can enter letters of the alphabet
(PIC A) and space characters in these fields.
• Alphanumeric You can enter letters of the alphabet,
(PIC X) digits, and special characters such as a
hyphen in these fields.
• Numeric Integer You can enter digits and possibly a sign
(PIC 9) character in these fields.
7-8