proleap-cobol-parser
proleap-cobol-parser copied to clipboard
Line number before EXEC SQL DECLARE causes syntax error
I get the error java.lang.RuntimeException: syntax error in line 38:6 extraneous input '*>EXECSQL EXEC SQL DECLARE BLABLA TABLE\n' expecting {ABORT, ALIGNED, ALL,...
when parsing the following code:
`
...
WORKING-STORAGE SECTION.
01 x PIC 99.
01 y PIC 99. 00043200
EXEC SQL DECLARE BLABLA TABLE
( A DECIMAL(2, 0) NOT NULL,
B DECIMAL(3, 0) NOT NULL
) END-EXEC.
...`
The same error doesn't show if definitions of x and y are switched (number must precede immediately EXEC SQL)