Re: newbie question on cobol syntax
- From: Howard Brazee <howard@xxxxxxxxxx>
- Date: Mon, 23 Apr 2007 08:50:12 -0600
On Sun, 22 Apr 2007 23:52:11 GMT, "William M. Klein"
<wmklein@xxxxxxxxxxxxxxxxx> wrote:
There is a SEMANTIC difference for periods. They end SENTENCES. This is where
a NEXT SENTENCE phrase (or statement - if your compiler has such a statement as
an extension - as Micro Focus does) will "go to". For example.
If Field-1 = A
Next Sentence
Else
Display "Here"
.
Display "There"
.
Gets very different results from
If Field-1 = A
Next Sentence
Else
Display "Here"
Display "There"
.
Some compilers will allow
If Field-1 = A
Next Sentence
Else
Display "Here"
End-IF
Display "There".
In which case "Next Sentence" still goes to the next sentence. I
see no advantage in ever using NEXT SENTENCE now that CONTINUE is
available.
Some pre-compilers create implicit IF statements without creating
END-IF statements. In these special cases, a style of including
full-stop periods can be beneficial. But in other cases, the
Righteous arguments for one style over another are more of a religious
nature.
And it is easy to see what Righteous people inflict on the world.
.
- Follow-Ups:
- Re: newbie question on cobol syntax
- From: William M. Klein
- Re: newbie question on cobol syntax
- From:
- Re: newbie question on cobol syntax
- References:
- newbie question on cobol syntax
- From: Mayer
- Re: newbie question on cobol syntax
- From: William M. Klein
- newbie question on cobol syntax
- Prev by Date: Re: newbie question on cobol syntax
- Next by Date: Re: Need to automate the FTP of EXCEl file to Mainframes
- Previous by thread: Re: newbie question on cobol syntax
- Next by thread: Re: newbie question on cobol syntax
- Index(es):
Relevant Pages
|