In this topic, we described about the below sections -
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.
Explicit scope terminators can be used to terminate the scope of an imperative statement. Explicit scope terminators are provided for all COBOL statements that have conditional phrases. There are two types of delimited scope statements -
- Implicit scope terminators
- Explicit scope terminators
Implicit scope terminator -
An implicit scope terminator is a separator period. The implicit scope terminator specified at the end of any sentence that terminates the scope of all previous statements not yet terminated. An unterminated conditional statement can't be coded in another statement.
Explicit scope terminators -
An explicit scope terminator marks the end of certain PROCEDURE DIVISION statements. A conditional statement delimited by its explicit scope terminator is considered an imperative statement. These are the explicit scope terminators -