Walter Murray wrote:
> "Erik Vistica" wrote:
>
>>Hi Alan, the manual is correct. (The ANSI std basically says the same
>>thing as the manual). It looks like a bug in the compiler. I tried the
>>'Not allowed' example and it (incorrectly) compiled cleanly.
>
>
> [snip - description of HP COBOL II/iX accepting illegal use of an OCCURS
> clause in a data description entry that has a variable occurrence data item
> subordinate to it]
>
> Several questions come to mind:
>
> 1. Does the compiler catch the error if you delete the GLOBAL clause?
No.
>
> 2. Does the compiler produce a warning if you compile with $CONTROL
> STDWARN?
No.
>
> 3. Does the compiler generate code that behaves reasonably?
Didn't run it, just compiled it. Some old SRs for similar things with
OCCURS claimed that it behaved OK.
>
> Walter (wishing I had access to a 3000 right now)
>
* To join/leave the list, search archives, change list settings, *
* etc., please visit http://raven.utc.edu/archives/hp3000-l.html *