Statements And Sentences - Control Data Corporation 3300 Reference Manual

Computer systems usasi cobol/ master
Table of Contents

Advertisement

4.1.2
STATEMENTS
AND SENTENCES
60229400
The three types of statements correspond to the three sentence types:
imperative, conditional, and compiler directing. A semicolon, may be
used as a separator between statements or within the IF statement to make
a sentence more readable. A separator may not immediately follow another
separator.
An imperative statement indicates a specific action to be taken by the object
program. An imperative sentence is an imperative statement terminated by
a period followed by a space. An imperative statement may consist of a
sequence of imperative statements each separated optionally from the next
by a separator. Imperative verbs are the following:
ACCEPT
DIVIDEt
MOVE
SET
ADDt
EXAMINE
MULTIPLyt
SORT
ALTER
EXIT
OPEN
STOP
CLOSE
GENERATE
PERFORM
SUBTRACTt
COMPUTEt
GO
RELEASE
TERMINATE
DISPLAY
INITIATE
SEEK
WRITEtt
In a statement format, the term, imperative-statement, refers to a sequence
of consecutive imperative statements ended by a period or an ELSE associated
with a previous
IF
verb or a WHEN associated with a previous SEARCH verb.
A conditional statement specifies a condition to be evaluated for truth, and
subsequent action of the object program is dependent on this truth value.
A conditional sentence is a conditional statement or sequence of conditional
statements optionally preceded by an imperative statement, terminated by a
period followed by a space. Conditional statements are the following:
IF
READ
SEARCH
RETURN
WRITE with INVALID KEY
Arithmetic statements with ON SIZE ERROR
A compiler directing statement consists of a compiler directing verb and its
operands. A compiler directing sentence is a single compiler directing
statement terminated by a period followed by a space. Compiler directing
verbs are the following:
COpy
ENTER
NOTE
tWithout the SIZE ERROR option
ttWithout the INVALID KEY option
4-3

Advertisement

Table of Contents
loading
Need help?

Need help?

Do you have a question about the 3300 and is the answer not in the manual?

Subscribe to Our Youtube Channel

This manual is also suitable for:

3500

Table of Contents