Created On:  29 March 2011

Problem:

When trying to compile using COBSQL I am getting the error message:  "CSQL-F-009: Irrecoverable error"

And specifying the directives PREPROCESS(cobsql) and PREPROCESS(CP), or as an alternative, the abbreviations P(cobsql) and P(CP), for example:

cob -C "P(cobsql) CSQLT=ORACLE8  P(CP) SY ENDP" hello-world.cbl

* Micro Focus COBSQL Integrated Preprocessor with ASCII/EBCDIC Support
* Server Express V5.1 Copyright (C)1984-2010 Micro Focus (IP) Limited.
* URN AAAPA/ZZ0/00065
* CSQL-I-008: Invoking CP Preprocessor
* CSQL-F-009: Irrecoverable error in CP -- Terminating
cob32: error(s) in compilation: hello-world.cbl

Resolution:

The "cp" preprocessor's name is case-sensitive.  If you specify it in uppercase:  P(CP),  it will not be recognized.  It must be specified in lowercase:  P(cp)

For example:

cob -C "P(cobsql) COBSQLTYPE==ORACLE8 P(cp) SY ENDP" hello-world.cbl

This will make the error go away.
Incident #2508358