In this topic, we described about the Statement Categories with detailed example.
COBOL statements are grouped in different statement categories. There are four categories of COBOL statements -
|Imperative Statements||An imperative statement specifies either an unconditional action to be taken by the program or a conditional statement terminated by its explicit scope terminator.
A series of imperative statements can be specified wherever an imperative statement is allowed.
|Conditional Statements||A conditional statement specifies the truth value of a condition and the subsequent action of the object program is dependent on this truth value.|
|Delimited Scope Statements||A DELIMITED SCOPE statement uses an explicit scope terminator to convert a conditional statement into an imperative statement.|
The resulting imperative statement can be nested.
|Compiler-directing Statements||A compiler-directing statement that causes the compiler to take a specific action during compilation.|