gnucobol-users
[Top][All Lists]
Advanced

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

Re: [open-cobol-list] Compiler modifications


From: Roger While
Subject: Re: [open-cobol-list] Compiler modifications
Date: Sun, 04 Jun 2006 20:35:07 +0200

Michel has sent me mods off-list, so I can make some general
comments here.


1) ...... If the dot at the end of the COMPUTE is removed, and END-PERFORM is added,
everything works OK.



Nope, as Bill said, we should/will not implement that.



2) When doing a READ NEXT at EOF on an indexed file, we get an error 46
(read error) instead of an error 10 (EOF)

In case it is not obvious what Michel meant here
(it is obvious reading the code changes), this is :
READ NEXT
Gets status 10 - EOF
READ NEXT
Gets status 46 - Read error

This is correct as is and will not be changed.



3) READ PREVIOUS is not implemented

Looking at the implications still.
Michel's preliminary code is a base from which I can work.


4) OPEN I-O a non existing file makes ERROR 35, on MF, it creates an empty
file.

Correct as is and will not be changed.


5) "READ WITH LOCK"  creates an error, it should create only a warning

Agreed. Will be implemented.


6) "UNLOCK" creates an error, it should create a warning

Agreed. Will be implemented.


7) Comments on MF can have a "*" in col 1-6


Not true on the MF versions that I have access to.
In free format it must be in column 1.
In fixed format it must be in column 7 unless
the MFCOMMENT directive is used when it
is accepted in column 1. Note that it appears that
some MF versions have MFCOMMENT turned on
by default against what it says in the documentation
which states that the default is off.
Using 4 different MF versions, in neither the fixed
nor the free format syntax is it possible to use an
asterisk for a comment solely in columns 2 to 6.

8) Error line numbers are usually wrong by a few lines

Example ?  :-)
(I do know there are parser cicumstances where it is off,
 but then again MF doesn't get 100% either)

Roger




reply via email to

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