On Tue, Sep 29, 2015 at 12:10 PM, Paul Gilmartin < 0000000433f07816-dmarc-requ...@listserv.ua.edu> wrote:
> On Tue, 29 Sep 2015 11:31:54 -0500, John McKown wrote: > > > >The physical indentation, in and of itself, wasn't really the problem in > >the original code. It was my attempt to "match" the level number values > >with a, to me, implied "nesting level" that causes my confusion. IMO, the > >original code is, at least, confusingly coded. I've always seen, and so > >expect, a given COBOL level number to match a particular "nesting" level, > >as I think of it (for group moves). Perhaps this was the original > >programmer's take on an "obfuscated COBOL" program. > > > Are you saying you now disagree with the behavior of GNU? > I am now saying that the IBM implementation is likely correct according to "the book" and the GNU implementation is a likely "bug". But I, in a sense, that I like the GNU error message because I, personally, think that it will reduce typo. I.e. I think that something like: 01 A. 05 B. 10 C PIC ... . 06 NEW. 10 D PIC ... . 10 E PIC ... . 05 F. 10 G PIC ... . 05 H PIC ... . is going to confuse the <elided> out of someone. Not all of the "10" levels under B are at the same nesting level. It just seems "weird" that the 10 C and 06 NEW are at the same nesting level. IMO, the "NEW" should be at level 10 and the D & E should be changed to, say, 15. But someone _could_ just insert the NEW as above so as to "minimize the number of lines changed" (06 NEW was an after thought to group D & E). It just confusing __TO ME__. Maybe it is just fine to a COBOL guru. > > -- gil > > -- Schrodinger's backup: The condition of any backup is unknown until a restore is attempted. Yoda of Borg, we are. Futile, resistance is, yes. Assimilated, you will be. He's about as useful as a wax frying pan. 10 to the 12th power microphones = 1 Megaphone Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN