Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Frederico Fonseca <real-email-in-msg-spam@xxxxxxxxx>
- Date: Mon, 11 Jul 2005 18:45:48 +0100
On Mon, 11 Jul 2005 15:41:16 GMT, "Oliver Wong" <owong@xxxxxxxxxxxxxx>
wrote:
> I'm trying to write a program that reformats the structure of a given
>COBOL program. One of the transformations I'd like to apply is to try to
>eliminate as many periods as possibles, using the END-whatever (END-IF,
>END-CALL, END-COMPUTE, etc.) constructs.
>
> My question is, is it always possible to do this? I don't want to
>"cheat" by adding new paragraph names at the beginning of every sentence
>(which may affect PERFORM statements anyway). My theory is that yes, it is
>always possible, but I haven't been programming in COBOL for that long, so I
>wasn't sure.
>
It is, but you need to have AT LEAST ONE period at the end of each
paragraph.
Some people will use a period on it's own, others will use a
"CONTINUE."
If you are going to do this (I don't agree with it myself) then I
advise you to use the "CONTINUE." way as it makes it very clear that
you have a "." there.
Frederico Fonseca
ema il: frederico_fonseca at syssoft-int.com
.
- Follow-Ups:
- References:
- Prev by Date: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Next by Date: Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Previous by thread: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Next by thread: Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Index(es):
Relevant Pages
|