ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to generate standard C header file for a cobol copybook

Post new topic  Reply to topic
 How to generate standard C header file for a cobol copybook « View previous topic :: View next topic » 
Author Message
kirani
PostPosted: Fri Apr 12, 2002 9:15 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
CodeCraft
PostPosted: Sat May 18, 2002 1:09 am    Post subject: Reply with quote

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
View user's profile Send private message
kirani
PostPosted: Sat May 18, 2002 11:21 am    Post subject: Reply with quote

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
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » How to generate standard C header file for a cobol copybook
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.