There are 2 problems with the code. One is the period just before the end-if
.
The other is that end_if
is not the same as end-if
. Only end-if
is used in Cobol. The end_if
is being taken as a paragraph name. Therefore, it does not (and should not) produce a compiler warning message.