Skip to main content

Fetched C module produces 0C1/0C4 ABENDs during linkage.

 Technote (troubleshooting)
 
Problem(Abstract)
PL/I 1.1.1 program fetches C module and produces 0C1/0C4 ABEND during linkage.
 
Cause
Improper entry point for the C module.
 
Resolving the problem
By adding the following JCL to the link-edit step for the C module, we can avoid the abend and achieve a successful run:

//LKED.SYSIN DD *
ENTRY MQAPI
NAME MQAPI(R)

Where MQAPI is the C module FETCHed from PL/I.

/* MQAPI.c routine */

#pragma (MQAPI,PLI)

void MQAPI(...) {
..
..

}
..
Example PL/I fetch:

  TEST0: PROC OPTIONS (MAIN);
.
.
.
      DCL  MQAPI EXTERNAL ENTRY;  
.
.
.  
           FETCH MQAPI;
.
.
CALL MQAPI(....);
.
END TEST0;
 
 
 

Copyright and trademark information

IBM, the IBM logo and ibm.com are trademarks of International Business Machines Corp., registered in many jurisdictions worldwide. Other product and service names might be trademarks of IBM or other companies. A current list of IBM trademarks is available on the Web at "Copyright and trademark information" at www.ibm.com/legal/copytrade.shtml.

Rate this page

Please take a moment to complete this form to help us better serve you.

This material provides me with the information I need.






This material is clear and easy to understand.






Did the information help you to achieve your goal?

What updates, improvements, or related information would you like to see in this document?

Your response will be used to improve our document content. Requests for assistance, if applicable, should be submitted through your normal support channel as we cannot respond from this site.


Input the verification number to submit feedback:



Document information

Product categories:

Software

Software Development

Traditional Progamming Language & Compilers

OS/390 C/C++

Compiler


Operating system(s):

OS/390


Software version:

All


Reference #:

1116321


IBM Group:

Software Group


Modified date:

2004-09-15

Translate my page