Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)

Data Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
5-51
Field-Characteristic Clauses
RECEIVE Clause
The RECEIVE clause specifies whether screen-field data can be accepted from a
terminal, another kind of device, or both. This option is supported only for applications
running on 6530 terminals with version C00 (or later) microcode and 6AI (revision A00)
firmware. If this clause is omitted, data can be accepted only from the terminal
keyboard.
ALTERNATE
causes data to be accepted from a device other than the terminal. The other devices
that Pathway supports are:
Optical character recognition reader
Optical bar code reader
Magnetic string reader for badges or cards
ALTERNATE OR TERMINAL
causes data to be accepted from one of the alternate devices listed above and from
the terminal keyboard.
TERMINAL
causes data to be accepted only from the terminal keyboard.
TERMINAL OR ALTERNATE
causes data to be accepted from one of the alternate devices listed above and from
the terminal keyboard.
The RECEIVE clause restricts input from the terminal keyboard for screen fields
defined with the ALTERNATE option. These fields can accept data only from an
alternate device that is connected to a 6530 terminal.
You can use the SCREEN COBOL TURN statement to change this attribute to a
previously defined option.
An example of the RECEIVE clause is:
SCREEN SECTION.
01 INVENTORY-REC-SCREEN BASE SIZE 24, 80.
:
05 PROD-FIELD AT 5, 28 PIC X(10) RECEIVE FROM ALTERNATE
USING WS-PROD-ID.
05 COUNT-FIELD AT 7, 28 PIC X(10) RECEIVE FROM
ALTERNATE OR TERMINAL
TO WS-PROD-COUNT.
RECEIVE [ FROM ] { ALTERNATE }
{ ALTERNATE OR TERMINAL }
{ TERMINAL }
{ TERMINAL OR ALTERNATE }