proleap-cobol-parser icon indicating copy to clipboard operation
proleap-cobol-parser copied to clipboard

Line number before EXEC SQL DECLARE causes syntax error

Open albertolovato opened this issue 6 years ago • 0 comments

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)

albertolovato avatar Mar 09 '18 14:03 albertolovato