|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Parsing COBOL Messages |
« View previous topic :: View next topic » |
Author |
Message
|
kuladeep.dairy |
Posted: Sat Feb 27, 2010 12:48 am Post subject: Parsing COBOL Messages |
|
|
Apprentice
Joined: 11 Jul 2009 Posts: 38
|
Hi
Can you please let me know how to parse the cobol message. this facility provided by rfhutil has a limit on the data size.
Many Thanks |
|
Back to top |
|
 |
mvic |
Posted: Sat Feb 27, 2010 2:43 am Post subject: Re: Parsing COBOL Messages |
|
|
 Jedi
Joined: 09 Mar 2004 Posts: 2080
|
Was the message put by a program written in the COBOL language?
How many such messages do you need to process? If many, you will need to write a program.
You didn't say how big the message is, and what the format is. Most message utility programs do have message length restrictions. But if none of the available utilities can help, you could write your own program to parse the message. |
|
Back to top |
|
 |
bruce2359 |
Posted: Sat Feb 27, 2010 10:58 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
cobol message?
Messages are messages, whether created by COBOL, C, VB, whatever language. Messages are language-independent.
Messages consist of a message header (MQMD structure) and the application data payload.
WMQ provides structures in copybooks (COBOL) and include files for all the supported languages.
How to use the APIs and the structures is well-documented in the WMQ Application Programming Reference and WMQ Application Programming Guide. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
Back to top |
|
 |
fjb_saper |
Posted: Sat Feb 27, 2010 10:28 pm Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Can you please post the RFHUtil(c) error?
I have checked many a message with the copy book feature and have had no problems. Usually if RFHUtil complains, it's because it has a reason to...
Remember also that if the message is bigger than 4MB you need to use a channel table, so that both ends will accommodate the message size...
In my experience length mismatches have been caused by translated messages (not loaded in original ccsid) and CR/LF problems...
Have fun  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bruce2359 |
Posted: Sun Feb 28, 2010 8:17 am Post subject: |
|
|
 Poobah
Joined: 05 Jan 2008 Posts: 9469 Location: US: west coast, almost. Otherwise, enroute.
|
...and, each and every MQI call issues a CompletionCode and ReasonCode that identifies if the call worked or not - and if not, why the call didn't work.
Please post exactly what you did, and what the utility returned to you. _________________ I like deadlines. I like to wave as they pass by.
ב''ה
Lex Orandi, Lex Credendi, Lex Vivendi. As we Worship, So we Believe, So we Live. |
|
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
|
|
|
|