Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: "Oliver Wong" <owong@xxxxxxxxxxxxxx>
- Date: Tue, 12 Jul 2005 13:03:23 GMT
"Richard" <riplin@xxxxxxxxxxxx> wrote in message
news:1121117821.011458.183950@xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx
> I can. It has been recently argu^H^H^H discussed here that a NEXT
> SENTENCE embedded in a nested imperitive IF is allowed (some even think
> it was deliberately allowed) and this will transfer control to after
> the next full stop which may be at some arbitrary point.
>
> In my view any such usage should cause the converter to put the output
> and input to /dev/nul, and preverably the coder as well, but it does
> mean that such a program cannot have that full stop removed.
Hmm, interesting. I did not find any mention of "NEXT SENTENCE" in any
of the documentation I initially used as references for the COBOL language,
but based on the discussions I've found on the web, it looks like NEXT
SENTENCE is an unconditional jump to the statement immediately following the
period of the sentence containing the NEXT SENTENCE statement, as you've
said.
I think this would be one one case where I would have to add a new
paragraph name (to act as a label), then change the NEXT SENTENCE to a GO TO
which jumps to that label. All the while, I have to be check for any PERFORM
or PERFORM THRU statements that I might have to update to reflect the
addition of this new paragraph.
Thanks for the tip, I might have to factor in this new issue into the
algorithm design.
- Oliver.
.
- Follow-Ups:
- References:
- Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Oliver Wong
- Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Howard Brazee
- Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Oliver Wong
- Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Howard Brazee
- Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Oliver Wong
- Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- From: Richard
- Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Prev by Date: Re: About your example...
- Next by Date: Re: Is it always possible to write a COBOL program using only 1 sentence per paragraph?
- Previous by thread: Re: 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
|