Open hansobermair opened 5 years ago
Hi, Hans.
Sorry for the late reply...
It is syntex error in ocesql precompir at word IS
in ASCENDING KEY IS T98-ROWID
.
By removing IS
, can precompile this source.
01 T98-TAB.
05 T98-ROWID-LAST PIC 9(009) COMP-5 VALUE ZERO.
05 T98-ROWID-NEW PIC 9(009) COMP-5 VALUE ZERO.
05 T98-TAB-CACHE OCCURS 100
DEPENDING ON Z-T98-EINTRAEGE
ASCENDING KEY T98-ROWID
INDEXED BY I-TAB.
How about this?
The workaround is nice, but where would be the place to fix that in the ocesql source?
The main reason for this issue is found in #25.
@n-isaka wrote
It is syntex error in ocesql precompir at word
IS
inASCENDING KEY IS T98-ROWID
.By removing
IS
, can precompile this source.01 T98-TAB. 05 T98-ROWID-LAST PIC 9(009) COMP-5 VALUE ZERO. 05 T98-ROWID-NEW PIC 9(009) COMP-5 VALUE ZERO. 05 T98-TAB-CACHE OCCURS 100 DEPENDING ON Z-T98-EINTRAEGE ASCENDING KEY T98-ROWID INDEXED BY I-TAB.
Are you sure? The parser does not contain the KEY
phrase at all (neither does it contain DEPENDING [ON] var
or INDEXED [BY] var
).
Adding those to the parser with a plain "ignore" as result would be useful. @yutaro-sakamoto What is your take on this?
Hi,
on this statement the parser reports an error:
I can only precompile the source, when I put this statements in an extry Cobol-Library.
Any suggestions?
Kind regards
Hans