mister270
mister270

Reputation: 366

AIX + Cobol + CICS = Missing Symbols

This is for anyone with experience compiling Cobol programs using CICS on AIX (7.1).

I need to compile a few simple COBOL/CICS programs on AIX. The problem I'm having is on the link.

We run cob2 HELLO.cob and the compile is successful but the link step shows:

ld: 0711-317 ERROR: Undefined symbol: .CICSAPIWSADDRE

ld: 0711-317 ERROR: Undefined symbol: .CICSAPIE

ld: 0711-317 ERROR: Undefined symbol: .CICSAPIEDFINIT

Now obviously these symbols are in a library someplace, but where? I cannot find documentation to locate them and I've searched the IBM world for this.

Thank you for any help. If there is documentation on these symbols please point me to it.

Upvotes: 0

Views: 386

Answers (1)

user3756353
user3756353

Reputation: 26

Please give your compilations commands, exactly you issued on your machine.

You can not simply run "cob2 sourcename". You need some other flags as well e.g. "cob2_r -qLIB -bI:/usr/lpp/cics/lib/cicsprIBMCOB.exp -e _iwz_cobol_main -L/usr/lpp/cics/lib -lsarpc -lpthreads -qAPOST -o HELLO.ibmcob HELLO.cbl". Or you can use simply "cicstcl -lIBMCOB HELLO.ccp".

Upvotes: 0

Related Questions