bug-gnucobol
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[open-cobol-list] Version 1.1 Bug in File-Control ?


From: Roger While
Subject: [open-cobol-list] Version 1.1 Bug in File-Control ?
Date: Thu, 21 Feb 2008 20:41:36 +0100

AUTHOR. INSTALLATION, DATE-WRITTEN, DATE-COMPILED,
SECURITY and the DATA RECORDS clause were all marked as obsolete
in the 85 standard..
REMARKS, as far as I know, comes from OSVS.

Also note that, with OC, warnings/errors depend on the dialect -

With -std=cobol85
mffile.cob:2: Warning: AUTHOR is obsolete in COBOL 85
mffile.cob:3: Warning: DATE-COMPILED is obsolete in COBOL 85
mffile.cob:20: Warning: DATA RECORDS is obsolete in COBOL 85

With -std=cobol2002
mffile.cob:2: Error: AUTHOR does not conform to COBOL 2002
mffile.cob:3: Error: DATE-COMPILED does not conform to COBOL 2002

Roger


On Thursday 21 February 2008 01:42:24 pm vince coen wrote:
> Hi;
>
> On Thursday 21 Feb 2008, Roger While wrote:
> > Indeed, it is defined internally which is what MF does.
> > You will get a warning if you specify "-Wall" when compiling -
> >
> > # cobc -Wall -free mffile.cob
> > mffile.cob:2: Warning: AUTHOR is obsolete in OpenCOBOL
> > mffile.cob:3: Warning: DATE-COMPILED is obsolete in OpenCOBOL
> > mffile.cob:20: Warning: DATA RECORDS is obsolete in OpenCOBOL
> > mffile.cob:28: Warning: 'INFILE-FILE-NAME' will be implicitly defined
> >
Way back in COBOL 74 or so the butchery of the names in  IDENTIFICATION
DIVISION began, staring with the most useful one, REMARKS. I use the original
names of course but I always comment out the lines on which they occur.  I
hadn't noticed that DATA RECORDS had fallen also.

DATE-COMPILED is no longer needed. For AUTHOR, INSTALLATION, SECURITY, REMARKS
etc. I just comment those lines. You could put the DATA RECORDS statement and
its keywords on a separate line and comment it also.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]