Open Cobol ESQL (ocesql) is an open-source Embedded SQL pre-compiler and run-time library designed for COBOL applications which access an open-source database.
Open-COBOL-ESQL cannot convert the following source code.
Open-COBOL-ESQL does not accept source code containing a variable initialized to an empty string.
IDENTIFICATION DIVISION.
PROGRAM-ID. a.
DATA DIVISION.
WORKING-STORAGE SECTION.
01 VAL PIC X(5) VALUE "".
PROCEDURE DIVISION.
DISPLAY "Hello".
STOP RUN.
If opensource COBOL compiles the source code, compiling succeeds while cobc displays warning messages.
a.cbl:5: Warning: Alphanumeric literal has zero length
a.cbl:5: Warning: A SPACE will be assumed
Open-COBOL-ESQL cannot convert the following source code. Open-COBOL-ESQL does not accept source code containing a variable initialized to an empty string.
If opensource COBOL compiles the source code, compiling succeeds while cobc displays warning messages.