Technical data

Table 4–1 Types of COBOL Statements
Type Verb
Conditional COMMIT ([NOT] ON ERROR)
CONNECT ([NOT] ON ERROR)
DISCONNECT ([NOT] ON ERROR)
ERASE ([NOT] ON ERROR)
FETCH ([NOT] AT END or
[NOT] ON ERROR)
FIND ([NOT] AT END or
[NOT] ON ERROR)
FREE ([NOT] ON ERROR)
GET ([NOT] ON ERROR)
KEEP ([NOT] ON ERROR)
MODIFY ([NOT] ON ERROR)
READY ([NOT] ON ERROR)
RECONNECT ([NOT] ON ERROR)
ROLLBACK ([NOT] ON ERROR)
STORE ([NOT] ON ERROR)
Imperative COMMIT ( 1 )
CONNECT ( 1 )
DISCONNECT ( 1 )
ERASE ( 1 )
FETCH ( 2 )
FIND ( 2 )
FREE ( 1 )
GET ( 1 )
KEEP ( 1 )
MODIFY ( 1 )
READY ( 1 )
RECONNECT ( 1 )
ROLLBACK ( 1 )
STORE ( 1 )
Delimited-Scope COMMIT (END-COMMIT)
CONNECT (END-CONNECT)
DISCONNECT (END-DISCONNECT)
ERASE (END-ERASE)
FETCH (END-FETCH)
FIND (END-FIND)
FREE (END-FREE)
GET (END-GET)
KEEP (END-KEEP)
MODIFY (END-MODIFY)
READY (END-READY)
RECONNECT (END-RECONNECT)
ROLLBACK (END-ROLLBACK)
STORE (END-STORE)
Legend:
( 1 ) Without the optional [NOT] ON ERROR phrase
( 2 ) Without the optional [NOT] AT END or [NOT] ON ERROR phrase
Like statements, COBOL sentences also can be compiler-directing, imperative,
or conditional. Sentence type depends upon the types of clauses the statement
contains. Table 4–2 summarizes the contents of the three types of COBOL
4–2 Procedure Division