[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [open-cobol-list] OC issues (more)
From: |
Alain Lucari |
Subject: |
Re: [open-cobol-list] OC issues (more) |
Date: |
Wed Jan 18 08:35:04 2006 |
Hi John,
Le Tue, 17 Jan 2006 16:32:24 -0500
"John R. Culleton" <address@hidden> a écrit:
> On Tuesday 17 January 2006 01:18 pm, Sergey Kashyrin wrote:
> > Hi again.
> > All of that is about compatibility with MAJOR compilers (390,
> > AS/400, MF, FJ) in a situations when program is incorrect.
> >
> > IDENTIFICATION DIVISION.
> > PROGRAM-ID. ztest INITIAL.
> > ENVIRONMENT DIVISION.
> > DATA DIVISION.
> > WORKING-STORAGE SECTION.
> > PROCEDURE DIVISION.
> > PERFORM 01-SUB.
> > PERFORM 02-SUB.
> > GOBACK.
> > 01-SUB.
> > DISPLAY "TEST1 OK".
> > 01-EXIT.
> > EXIT.
> > 02-SUB.
> > DISPLAY "TEST2 OK".
> > 01-EXIT.
> > EXIT.
>
> Paragraph name 01-EXIT is defined twice. The compile should error
> off.
>
> The exit paragraphs are superflouous in any case because there are
> no PERFORM--- THRU --- statements.
>
> Decades ago IBM upgraded COBOL D(?) and programs started blowing
> up. They had paragrahs not terminated by a period. But that was
> just sloppy programming.
>
> No one should construct a compiler IMO to accept syntax errors
> just because other compilers are silent on the errors.
>
BRAVO : it's just what I think and write other (because I am not
really fluent in english)
Best regards,
--
Alain Lucari (Eurlix)
- Re: [open-cobol-list] OC issues - number 6, (continued)
RE: [open-cobol-list] OC issues (more), Bill Klein, 2006/01/17
Re: [open-cobol-list] OC issues (more), John R. Culleton, 2006/01/17
- RE: [open-cobol-list] OC issues (more), Bill Klein, 2006/01/17
- Re: [open-cobol-list] OC issues (more), John R. Culleton, 2006/01/17
- Re: [open-cobol-list] OC issues (more), Alain Lucari, 2006/01/18
- Re: [open-cobol-list] OC issues (more), Sergey Kashyrin, 2006/01/18
- Re: [open-cobol-list] OC issues (more), Alain Lucari, 2006/01/18
Re: [open-cobol-list] OC issues (more),
Alain Lucari <=
Re: [open-cobol-list] OC issues (more), Alain Lucari, 2006/01/18