skip to main content

Procedure Division : Procedural statements and sentences : Scope of statements : Implicit scope termination

Implicit scope termination
The scope of a statement that is not explicitly terminated is implicitly terminated as follows:
1.
a.
b.
c.
2.
a.
b.
c.
3.
4.
a.
b.
Any phrase encountered is the next phrase of the most-recently preceding unterminated statement with which that phrase may be syntactically associated. If all permitted occurrences of a phrase have already been specified for a given statement, a subsequent occurrence of that phrase is not syntactically associated with that statement. An unterminated statement is any statement that has begun but has not yet been either explicitly or implicitly terminated.
A contained statement is also referred to as a nested statement.

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left