Problem Cobol V5.2 compilation

book

Article ID: 35449

calendar_today

Updated On:

Products

CA Datacom - DB CA Datacom CA Datacom - AD CA Datacom - Server CA CIS CA Common Services for z/OS CA 90s Services CA Database Management Solutions for DB2 for z/OS CA Common Product Services Component CA Common Services CA Datacom/AD CA ecoMeter Server Component FOC CA Easytrieve Report Generator for Common Services CA Infocai Maintenance CA IPC Unicenter CA-JCLCheck Common Component CA Mainframe VM Product Manager CA Chorus Software Manager CA On Demand Portal CA Service Desk Manager - Unified Self Service CA PAM Client for Linux for zSeries CA Mainframe Connector for Linux on System z CA Graphical Management Interface CA Web Administrator for Top Secret CA CA- Xpertware

Issue/Introduction

Question:

We have installed:

Ca Datacom/DB R14SP0.

CA IDEAL R14SP0

CA IPC R14SP0

CA CICS Services Facility R14SP0

z/OS V1.13

COBOL V5.2

when compiled with COBOL 4.2 and Datacom, the compilation is successful, but when used COBOL v5.2, this ends with CC12. 

I´m sending the joblog that have the error, please tell me if you need more information about the problem.

error message received:

IEW2456E 9207 SYMBOL DBNTRY UNRESOLVED.

 

Answer:

There is a CALL 'DBCSVPR' after the last GOBACK in the source which should generate an EXTRN in the object module which is picked up by the binder.

It looks like COBOL 5.2 is not generating it. I believe it is because in 5.2 you are using the OPTIMIZE option which removes redundant code. In COBOL 4.2 the default was NOOPTIMIZE but in 5.2 you have a default of OPTIMIZE.

Addition of NOOPTIMIZE option via the PARM in the COBOL 5.2 step resolved the problem. 

 

Environment

Release:
Component: DB