Re: newbie question on cobol syntax



William M. Klein wrote:
Actually,
If you have code that compiled with "FCOBOL" - or even with OS/VS COBOL and you NOW are using the newer (IBM) compilers, then changing every NEXT SENTENCE to CONTINUE should never change the logic flow.

The only time that there is a "difference in logic flow" is when you MIX old COBOL (with NEXT SENTENCE) *with* scope terminators (END-IF or whatever). Therefore, if you are worried about "base of code" BUT are using newer compiler, then feel "safe" in changing NEXT SENTENCE to CONTINUE.

Of course as "your - not my - sainted mother" is reported to have said <G> such changes are rarely requested by those who sign your paychecks.

Seeing as you brought up his 'sainted mother', note how we are moving further back through his family tree, the latest being, I think, "My sainted Maternal Grandfather, may he sleep with the angels, ........".

Given a choice, I would have thought that his Maternal Grandfather would have preferred to sleep with his Maternal Grandmother rather than the angels. However, if Heaven is all it is cracked up to be, his Maternal Grandfather might possibly like a shot at sleeping with his Paternal Grandmother, and then he would be laying back in the puff-ball clouds with a smile on his lips, like the cat that got the cream..

Jimmy
.