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 » IBM MQ API Support » Java-Cobol clarification needed

Post new topic  Reply to topic
 Java-Cobol clarification needed « View previous topic :: View next topic » 
Author Message
gobi_nathan
PostPosted: Mon Mar 24, 2003 10:34 pm    Post subject: Java-Cobol clarification needed Reply with quote

Acolyte

Joined: 08 Jan 2003
Posts: 69

hi ,


I am trying to set the communication between Java application running in Unix and Cobol Program running in Mainframe system.
Communications are establised using channel and Remote queue definition.I guess the ebcdic -ascii conversion will be done automatically by MQ.

Now,I need to send the message from Java in cobol copy book format,So that cobol application running in the mainframe can read it and parse the data.

What is the best way to send the message.If i send the messsage as a Text String having all the values defined in copybook.will it work for all the datatypes Numeric , signed data types in cobol.

Can anyone confirm this or tell me if there is any issues..


-Gobi
Back to top
View user's profile Send private message
meekings
PostPosted: Tue Mar 25, 2003 11:41 am    Post subject: Reply with quote

Voyager

Joined: 28 Jun 2001
Posts: 86
Location: UK, South West

Conversion only works on text messages. If your message contains binary data, you'll have to write an exit to convert appropriate parts - or use WMQI as an intermediary (WMQI allows message formats to be defined or imported from a copybook, and will perform conversions for packed/zoned decimal, etc).
Back to top
View user's profile Send private message Send e-mail Visit poster's website
gobi_nathan
PostPosted: Wed Mar 26, 2003 5:34 am    Post subject: Reply with quote

Acolyte

Joined: 08 Jan 2003
Posts: 69

Actually i need to send the following cobol data type only

PIC X(10)
PIC 9(10)
PIC S9V99
PIC S9(4) COMP

So,i think i can send all these in Test Message..


Can you please tell me how to do the conversion for the binary data by writing an exit java classes.

-Gobi.
Back to top
View user's profile Send private message
meekings
PostPosted: Wed Mar 26, 2003 5:58 am    Post subject: Reply with quote

Voyager

Joined: 28 Jun 2001
Posts: 86
Location: UK, South West

See the Application Programming Guide, chapter 11 - Writing Data Conversion Exits. I've never done this, but I think it has to be in C, not Java.
Back to top
View user's profile Send private message Send e-mail Visit poster's website
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ API Support » Java-Cobol clarification needed
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.