Pathway/iTS TCP and Terminal Programming Guide

Designing Your Application
Compaq NonStop™ Pathway/iTS TCP and Terminal Programming Guide426751-001
2-12
SCREEN COBOL Requesters
As a programmer, your task is to create each required program unit. For each program
unit, you use the text editor TEDIT to create a screen program as a SCREEN COBOL
source file. You then use the SCREEN COBOL compiler to read the source file and
create:
A program label entry in the SCREEN COBOL library directory (*DIR)
Pseudocode (code that is interpreted by the TCP) in the SCREEN COBOL library
code file (*COD)
Once the pseudocode resides in *COD, it is immediately usable by the TCP, which
reads programs from the library file, interprets them, and executes them on behalf of the
terminals logically attached to the TCP. The SCREEN COBOL library files may
contain copies of many different screen programs.
Figure 2-3
illustrates the tasks and components involved in the creation of a SCREEN
COBOL requester program.
Program Structure
The logon, menu, list-only, data entry, and help program units each consist of four
required divisions. These divisions are very similar to standard COBOL divisions,
except that the Data Division in a SCREEN COBOL program contains a section for
screen description and entry formatting, and there are no file descriptions in a SCREEN
COBOL program because the requester does not access data files.
The Identification Division identifies the program unit to the SCREEN COBOL
compiler. It contains one required paragraph and five optional paragraphs.
Figure 2-3. Creating SCREEN COBOL Requester Programs
POBJDIR
CDT 023.CDD
Identification Division
Environment Division
Data Division
Procedure Division
TEDIT
Source
File
POBJCOD
SCREEN
COBOL
Compiler