You are mistaken.

everyone needs the "END"

what happens is that in "COBOL"

you can close an instruction with a period

for example


IF variabe = 10
   do stufff .

or

evaluate variable 
   when "HI"
        do STUFF .


it is a specific property of cobol to be able to end any sentence with a period

but it is not the idea since it tends to cause programming errors

for example you can pass the following error


FINE:

IF variable = 100
   DISPLAY "HELLO WORD"
   DISPLAY "MERRY CRISMAS"
END-IF


NOT FINE:

IF variable = 100
   DISPLAY "HELLO WORD"   .
   DISPLAY "MERRY CRISMAS"


in the first example display only work when variable = 100

IF NOT the result is empty


and the second example if variable not = 100 

the result display is "MERRY CRISMAS" because the "." close sentence before
thats display



it is a common mistake

because old programmers are used to using "." at the end of each sentence

thing that is not necessary

the best way is always using END-XXX in all structure

-- 
<https://forum.pspad.com/read.php?6,76984,77013>
PSPad freeware editor https://www.pspad.com

Odpovedet emailem