|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Java-Cobol clarification needed |
« View previous topic :: View next topic » |
Author |
Message
|
gobi_nathan |
Posted: Mon Mar 24, 2003 10:34 pm Post subject: Java-Cobol clarification needed |
|
|
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 |
|
 |
meekings |
Posted: Tue Mar 25, 2003 11:41 am Post subject: |
|
|
 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 |
|
 |
gobi_nathan |
Posted: Wed Mar 26, 2003 5:34 am Post subject: |
|
|
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 |
|
 |
meekings |
Posted: Wed Mar 26, 2003 5:58 am Post subject: |
|
|
 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 |
|
 |
|
|
 |
|
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
|
|
|
|