Skip to main content
Dominique Sacre
Rocketeer
May 20, 2020 7:36 PM UTC

INCLUDE can not dissolved

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

    1 reply

    Chris Glazier
    Moderator
    May 21, 2020 5:59 PM UTC

    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?