|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
How to generate standard C header file for a cobol copybook |
« View previous topic :: View next topic » |
Author |
Message
|
kirani |
Posted: Fri Apr 12, 2002 9:15 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
I have imported a COBOL copybook into MRM and created a Message as per my requirement. I then generated a C header file out of the COBOL copybook thru Control Center. I can not use that heder file directly because it is a CMI heder file. It has data types such as CMLONG, CMDOUBLE etc.
My question is,
1. Is there a way to generate standard header file from control center for a COBOL copybook?
2. How do i use CMI header file in my program?
_________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
CodeCraft |
Posted: Sat May 18, 2002 1:09 am Post subject: |
|
|
Disciple
Joined: 05 Sep 2001 Posts: 195
|
Is this still an open question?
The answer is no! Correct that the file generated is for CMI, and cannot be used in a standard program as is.
In fact, you need to be careful when doing this because when you think about it there are features of an MRM message generated from COBOL (and native MRM) that cannot be represented in C, such as the packed decimal data types, etc.
I don't think there's an easy way to do this in the product, and there isn't a (usable) C or COBOL header generate for the very reason that the MRM message features are a superset of the actual features of C and COBOL types available.
I suspect however, that you may find somewhere on the web, a program for converting COBOL to C ... |
|
Back to top |
|
 |
kirani |
Posted: Sat May 18, 2002 11:21 am Post subject: |
|
|
Jedi Knight
Joined: 05 Sep 2001 Posts: 3779 Location: Torrance, CA, USA
|
No, I solved this problem sometime back after creating some typedefs. I used the generated C header file to create my msessageset. I am mapping COBOL to C in my message flow, so I don't have any issues regarding data conversion (Packed decimal or other data types). _________________ Kiran
IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries
|
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|