Skip to main content

Hi, 

I am trying to compile my JVM Project.

Using the include-command does not work, the copy will not be found:

EXEC SQL
       INCLUDE HV
END-EXEC.
...

-> cobol] COBCH0012S Operand HV-T-BEZUG is not declared 

HV-T-BEZUG ist declared in the copy HV.

Using the copy HV by the command 'copy HV' there are no problems.

My directives :

hide-message"1158" REMOVE(NAME) REMOVE(USER) nospzero DATAMAP hostnum-compare"2"
hostnum-move nobound nomfcomment assign"external" defaultbyte"00"
notrunc setting adv NOKEYCHECK filetype"11" sequential"record" HOST-NUMCOMPARE
SIGN-FIXUP TRUNCCOPY"16" IDXFORMAT"8" CONSTANT COBCONNECT "TRUE" CONSTANT
CONREUSE "TRUE" CONSTANT COBLOG "FALSE" REMOVE(BYTE) REMOVE(DECLARE)
REMOVE(PARAMS) COPYEXT",cbl,cpy,mf,CPY,CBL" ILEXPONENTIATION "FLOAT"
CHECKDIV "ENTCOBOL" NOBOUNDOPT

SQL Pre Dirs:
SQL(DBMAN=JDBC) SQL(NOAUTOCOMMIT) SQL(CHECKSINGLETON) SQL(DATE=EUR) SQL(DB) SQL(TARGETDB=DB2)

I am using VC 5.0, compiling native with aix it works, in further version 2.3 it also worked ...


Best regards,
Herbert

Hi, 

I am trying to compile my JVM Project.

Using the include-command does not work, the copy will not be found:

EXEC SQL
       INCLUDE HV
END-EXEC.
...

-> cobol] COBCH0012S Operand HV-T-BEZUG is not declared 

HV-T-BEZUG ist declared in the copy HV.

Using the copy HV by the command 'copy HV' there are no problems.

My directives :

hide-message"1158" REMOVE(NAME) REMOVE(USER) nospzero DATAMAP hostnum-compare"2"
hostnum-move nobound nomfcomment assign"external" defaultbyte"00"
notrunc setting adv NOKEYCHECK filetype"11" sequential"record" HOST-NUMCOMPARE
SIGN-FIXUP TRUNCCOPY"16" IDXFORMAT"8" CONSTANT COBCONNECT "TRUE" CONSTANT
CONREUSE "TRUE" CONSTANT COBLOG "FALSE" REMOVE(BYTE) REMOVE(DECLARE)
REMOVE(PARAMS) COPYEXT",cbl,cpy,mf,CPY,CBL" ILEXPONENTIATION "FLOAT"
CHECKDIV "ENTCOBOL" NOBOUNDOPT

SQL Pre Dirs:
SQL(DBMAN=JDBC) SQL(NOAUTOCOMMIT) SQL(CHECKSINGLETON) SQL(DATE=EUR) SQL(DB) SQL(TARGETDB=DB2)

I am using VC 5.0, compiling native with aix it works, in further version 2.3 it also worked ...


Best regards,
Herbert

What is the physical name of the HV copybook on disk? Does it have an extension?

In which folder does the copybook reside? Is it part of the project?

If you specify the full path name to the copybook in the INCLUDE statement does it find it then?