Re: EXIT SECTION/PARAGRAPH
- From: "William M. Klein" <wmklein@xxxxxxxxxxxxxxxxx>
- Date: Mon, 10 Sep 2007 21:10:18 GMT
Interesting ...
I just checked the MF 5.0 LRM and they mark EXIT FUNCTION/METHOD with an
ISO2002 bubble (and an MF bubble)
But they only mark EXIT PARAGRAPH/SECTION/CYCLE with MF bubbles.
This means that OFFICIALLY, they only claim it as an extension - not as a part
of their PARTIAL implementation of the '02 Standard.
My guess (only a guess) is that this is a DOX error and that they really do
conform (and think they conform) to the '02 Standard for this feature.
Although they do NOT claim full conformance to the entire '02 Standard, their
LRM does mark those individual features that they claim are implemented in
accordance to that Standard (that were not in the '85 Standard). See their
explanation of the ISO2002 bubble in the NOTATION section.
--
Bill Klein
wmklein <at> ix.netcom.com
"Rick Smith" <ricksmith@xxxxxxx> wrote in message
news:13eb33f2np62be7@xxxxxxxxxxxxxxxxxxxxx
"Robert" <no@xxxxxx> wrote in message
news:96uae3106tktv1aclfgel7fsg6j7lm0nsq@xxxxxxxxxx
On Fri, 7 Sep 2007 12:59:30 -0400, "Rick Smith" <ricksmith@xxxxxxx> wrote:[snip]
EXIT PARAGRAPH in an unnamed paragraph
transfers control to the end of the paragraph, as
required by 2002, EXIT statement GR(11).
Micro Focus gives a fatal error:
procedure division.
if 1 = 2
exit paragraph
end-if
goback
3 exit paragraph
* 161-S**********************
**
** Can only be used within a Paragraph
cob: error(s) in compilationl
Does Micro Focus claim the compiler conforms to the
COBOL 2002 standard?
Or, are you assuming that EXIT PARAGRAPH as an
extension to the COBOL 1985 standard has the same
behavior as the COBOL 2002 standard?
Incidently, the relation "1 = 2" is a syntax error in both
the current and previous standards. At least one of the
items must be a variable! [This was discussed a year or
so ago, in conjunction with PERFORM UNTIL 1 = 0.]
.
- Follow-Ups:
- Re: EXIT SECTION/PARAGRAPH
- From: Rick Smith
- Re: EXIT SECTION/PARAGRAPH
- References:
- EXIT SECTION/PARAGRAPH
- From: Roger While
- Re: EXIT SECTION/PARAGRAPH
- From: Rick Smith
- Re: EXIT SECTION/PARAGRAPH
- From: Robert
- Re: EXIT SECTION/PARAGRAPH
- From: Rick Smith
- EXIT SECTION/PARAGRAPH
- Prev by Date: Re: EXIT SECTION/PARAGRAPH
- Next by Date: Re: Can IT deal with change? was:
- Previous by thread: Re: EXIT SECTION/PARAGRAPH
- Next by thread: Re: EXIT SECTION/PARAGRAPH
- Index(es):
Relevant Pages
|