Skip to main content

[Migrated content. Thread originally posted on 08 February 2012]

Hello All,

I am trying to precompile a Pro*cobol program.

I have included an INCLUDE for SQLCA, but I am not sure where is the definition being picked up from.
I have checked COBCPY, procompiler INCLUDE ... etc but it does not seem to pick up any of my copybooks but has this version in the compiler listing which I am not sure is picked up from.
Is there a way so that the path of the copybook (both COPY and INCLUDE) is listed in the compiler listings ?

--- Update
I would like to further mention that If I issue an COPY SQLCA then it does pick up my version, how ever INCLUDE does not.

-PTeng

[Migrated content. Thread originally posted on 08 February 2012]

Hello All,

I am trying to precompile a Pro*cobol program.

I have included an INCLUDE for SQLCA, but I am not sure where is the definition being picked up from.
I have checked COBCPY, procompiler INCLUDE ... etc but it does not seem to pick up any of my copybooks but has this version in the compiler listing which I am not sure is picked up from.
Is there a way so that the path of the copybook (both COPY and INCLUDE) is listed in the compiler listings ?

--- Update
I would like to further mention that If I issue an COPY SQLCA then it does pick up my version, how ever INCLUDE does not.

-PTeng

Hi,

The Pro*COBOL INCLUDE option should allow you to override the path used by Pro*COBOL to locate copybooks referenced by EXEC SQL INCLUDE statements.

Simon.

[Migrated content. Thread originally posted on 08 February 2012]

Hello All,

I am trying to precompile a Pro*cobol program.

I have included an INCLUDE for SQLCA, but I am not sure where is the definition being picked up from.
I have checked COBCPY, procompiler INCLUDE ... etc but it does not seem to pick up any of my copybooks but has this version in the compiler listing which I am not sure is picked up from.
Is there a way so that the path of the copybook (both COPY and INCLUDE) is listed in the compiler listings ?

--- Update
I would like to further mention that If I issue an COPY SQLCA then it does pick up my version, how ever INCLUDE does not.

-PTeng

Thank you for your response. Using procob.exe directly did not help even though I has INCLUDE=, how ever when I switched to using COBSQL it works !

PTeng