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

SCREEN COBOL Source Program
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual426750-001
2-3
Program Organization
In intelligent mode, a SCREEN COBOL program can:
Send data directly from Working-Storage to the intelligent device
Receive a reply from the intelligent device and move it directly to Working-Storage
Map data from Working-Storage into a message entry in the Message Section
Request the intelligent device to return a reply as a message entry in the Message
Section
Program Organization
A SCREEN COBOL program is organized into four divisions that must appear in the
following order:
1. The Identification Division identifies the program. Comments such as the name of
the programmer, the date the program was written, and a description of the program
can be declared in this division.
2. The Environment Division specifies the program execution environment. Display
error attributes, processing options, computer equipment, and terminal equipment
can be described in this division.
3. The Data Division defines the program data structures in terms of their formats and
usage. In the Data Division are the following sections:
The Working-Storage Section in this division describes data local to the
program.
The Linkage Section describes data passed from another program.
The Screen Section describes data displayed on and accepted from a terminal.
The Message Section describes messages sent to and replies returned from an
intelligent device.
4. The Procedure Division specifies the processing steps of the program.
Language Elements
The SCREEN COBOL language elements fall into one of two categories:
Character strings—strings of contiguous characters
Separators—characters that separate one character string from another
The language elements that comprise the SCREEN COBOL source program are
described in the following paragraphs.