Pathway/iTS TCP and Terminal Programming Guide

Designing Your Application
Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide426751-001
2-13
SCREEN COBOL Requesters
The Environment Division declares the operating environment of the program unit
and optionally allows modification of the TCP’s error-reporting operations. It
contains one required section (the Configuration Section) and one optional section
(the Input-Output Section).
The Data Division defines the program data structures by their format and usage.
Both the Working-Storage Section, which describes data local to the program, and
the Screen Section, which describes data displayed on and accepted from a terminal,
are required.
The Procedure Division includes all the processing steps for the program. The steps
are organized into SCREEN COBOL statements and sentences and grouped into
sections, paragraphs, and procedures.
The example of a SCREEN COBOL program structure in Example 2-1
illustrates a
program unit containing the four required divisions previously described. This program
unit, which is in outline form, would handle data entry for the order-processing
application introduced at the beginning of this section.
Note. The program in Example 2-1 illustrates program structure only; it is not a complete
program. For examples of complete, running SCREEN COBOL requester programs, refer to
the Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual.