We are trying to parse Cobol sources.
Using the keyword ‘THREAD’ in a CALL statement causes a parsing-error.
Versions used:
Cobol: AcuCobol version 10.2.1, fixed format
SonarQube: Enterprise Edition Version 9.6.1 (build 59531)
– extract from the parser logging –
ERROR: Unable to parse COBOL source file : /build/builds/_NwxSV3v/0/dataserver-utilities/tdeltaplayground/sonar-parse-errors/cobol-src/source/PP0024 at line 5
Original contents starting from line 1 till line 6:
IDENTIFICATION DIVISION.
PROGRAM-ID. PP0024.
PROCEDURE DIVISION.
* The THREAD keyword causes the parser to fail:
CALL THREAD "SOME_PROGRAM"
GOBACK.
Preprocessed contents:
Parse error at line 5:
1: IDENTIFICATION DIVISION .
2: PROGRAM-ID . PP0024 .
3: PROCEDURE DIVISION .
5: CALL THREAD "SOME_PROGRAM"
^
6: GOBACK .
7: EOF
Please fix this parse-error