KB Article #178849

API 'CFTI' call error after upgrading to CFT V3 - ABEND S0C1

Problem

Error during execution for COBOL API 'CFTI' call.


Upgrading CFT from version 2.7.1 to 3.2


ABEND SYSTEM=0C1 while running a call to API CFTI


The program was running OK in CFT 2.7.1


Link-edit area added for the use of DLL needed since Transfer CFT version 3

(Program compiled and linked with library V3 using DLL (and USERAPI deleted)



Resolution

The issue has been already reported, it appears that depends of the environment or the COBOL version used, you can face such a problem in using the CFT API.


To overcome that issue, add a CALL 'CFTINIT' before the CALL 'CFTI'

Before CALL 'CFTI' , please add CALL 'CFTINIT'.

...

CALL 'CFTINIT'     END-CALL.
CALL 'CFTI' USING  F-OPEN  BLK  D-CAT   Z-RC
...