Figure 1.3. Cobol Command Keys And Codes For Data Entry Keyboards; Figure 1.4. Cobol Command Keys And Codes For Typewriter Keyboards - IBM 5280 Programmer's Manual

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

Advertisement

One of the codes shown in figures 1.3 and 1.4 when the indicated
command key is pressed. (Twenty-one (21) command keys are available
for use with your COBOL programs.)
Command keys can make interaction between an operator and the program
easier and more efficient. For example, in response to a program prompt, the
operator can simply press one of the command keys instead of having to enter
data. You can then determine the next logical action of your program based
on the command key code returned to the program.
The operator selects a COBOL command key by (1) adjusting the shift to
either lower case (alpha) or upper case (numeric), (2) pressing the CMD key,
and (3) then pressing the desired command key.
The command keys as they appear on the data entry keyboard and the
typewriter keyboard are shown in figures 1.3 and 1.4. The code passed to the
program when each key is pressed is shown in the figure. The code is inserted
in a data-item you define in your program. You relate the data-item to the
CONTROL-AREA clause as described under "Work Station Control Area"
in Chapter 3.
ALPHA SHIFT
NUMERIC SHIFT
KEY
CODE
KEY
CODE
@
1
#
13
%
2
$
15
*
3
16
<
4
CORR
17
CORR
5
DUP
18
,
7
19
-
/
8
0
20
~
9
RELADV
22
RECADV
10
~
22
~I
11
SEL FMT
24
SEL FMT
12
Figure 1.3. COBOL command keys and codes for data entry keyboards
LOWERCASE.
UPPERCASE.
I
I
KEY
CODE
KEY
co~
I
2
1
@
13
I
3
2
$
15
4
3
%
16
I
5
4
17
6
5
&
18
8
7
*
19
9
8
20
0
9
22
10
+
23
11
f - -
24
f - -
12
Figure 1.4. COBOL command keys and codes for typewriter keyboards
1- 6
IBM 5280 COBOL Programmer's Guide

Advertisement

Table of Contents
loading

Table of Contents