Skip to main content

I have a project where there are embedded SQL and XML as well. When I add "$set preprocess(prexml) endp" at the top of the cbl file or add the Micro Focus XML Preprocessor in Project Properties - Preprocessors and make a rebuild, the build process seems to get hanged. The Output window keeps adding these lines until I cancel the build process:

------ Rebuild All started: Project: IntGntProject1, Configuration: Debug x86 ------

* Cobsql Integrated Preprocessor
* Compiling c:\\jens\\visualcobol\\IntGntProject1\\IntGntProject1\\K2281.cbl
* CSQL-I-008: Invoking CP Preprocessor
Micro Focus Embedded XML/HTML Preprocessor
Version a.b.cc Copyright (C) Micro Focus 1984-2018. All rights reserved.
Micro Focus Embedded XML/HTML Preprocessor
Version a.b.cc Copyright (C) Micro Focus 1984-2018. All rights reserved. ...

Anyone has an idea what's wrong?

I have a project where there are embedded SQL and XML as well. When I add "$set preprocess(prexml) endp" at the top of the cbl file or add the Micro Focus XML Preprocessor in Project Properties - Preprocessors and make a rebuild, the build process seems to get hanged. The Output window keeps adding these lines until I cancel the build process:

------ Rebuild All started: Project: IntGntProject1, Configuration: Debug x86 ------

* Cobsql Integrated Preprocessor
* Compiling c:\\jens\\visualcobol\\IntGntProject1\\IntGntProject1\\K2281.cbl
* CSQL-I-008: Invoking CP Preprocessor
Micro Focus Embedded XML/HTML Preprocessor
Version a.b.cc Copyright (C) Micro Focus 1984-2018. All rights reserved.
Micro Focus Embedded XML/HTML Preprocessor
Version a.b.cc Copyright (C) Micro Focus 1984-2018. All rights reserved. ...

Anyone has an idea what's wrong?

I just tested this here and it seems to work fine as long as the XML preprocessor appears first in the list of the stacked preprocessors.

On the Preprocessors tab of the project properties, click on the little arrow next to the " " sign to add a new preprocessor and select "Installed Preprocessors" and then select XML from the list. If you set the COBSQL preprocessor options on the SQL tab then it should already appear in the list. Move the XML preprocessor above the COBSQL one and it should compile ok.

 


I just tested this here and it seems to work fine as long as the XML preprocessor appears first in the list of the stacked preprocessors.

On the Preprocessors tab of the project properties, click on the little arrow next to the " " sign to add a new preprocessor and select "Installed Preprocessors" and then select XML from the list. If you set the COBSQL preprocessor options on the SQL tab then it should already appear in the list. Move the XML preprocessor above the COBSQL one and it should compile ok.

 

Yes, now it works. Thank you.

And if you want to add the Pro*COBOL and CP preprocessors it seems important that they come in a certain order in Project Properties - Preprocessors. I added some simple XML-related code in a cbl file, and then added the XML Preprocessor, the Oracle Pro*COBOL preprocessor and the CP Preprocessor in that order. The preprocessor directives in the Preprocessors tab should look like this:

    P(prexml) P(cobsql) COBSQLTYPE=ORACLE END-COBSQL P(cp) ENDP

And then I made a rebuild, and it worked.