Pathway/iTS SCREEN COBOL Reference Manual (G06.24+, H06.03+, Pathway/iTS 1.0+)
Procedure Division
Compaq NonStop™ Pathway/iTS SCREEN COBOL Reference Manual—426750-001
6-4
Procedures
The following examples illustrate imperative sentences:
ADD a1 TO b1 GIVING c1, d1, e1.
ADD 25 TO x2,
GO TO next-image.
A conditional sentence tests a conditional item or some relationship between values to
determine an action to take.
The following example illustrates a conditional sentence:
IF last-tax IS LESS THAN current-tax
PERFORM higher-tax
ELSE PERFORM lower-tax.
Procedures
A procedure consists of a paragraph, a group of successive paragraphs, a section, or a
group of successive sections. A procedure name is a paragraph or section name; the
name can be qualified.
Procedure Division Statements
Procedure Division statements can be grouped into ten categories. Table 6-1 lists each
statement and its category.
The following statements cannot be used in IDS requester programs:
ACCEPT DISPLAY TURN
CLEAR PRINT SCREEN USE FOR SCREEN RECOVERY
DISPLAY BASE RESET USE FOR TERMINAL-ERRORS
DISPLAY OVERLAY SCROLL
DISPLAY RECOVERY SET
All of the SCREEN COBOL statements are described in alphabetic order in the
remainder of this section.
Note. Intelligent Device Support (IDS) SCREEN COBOL requester programs interact with
external (that is, outside of Pathway) processes which, in turn, control intelligent devices such
as automated teller machines, airline reservation terminals, and personal computers. These
requester programs are message-oriented. IDS requester programs use the SEND
MESSAGE statement and its REPLY to send and receive messages.