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 Performance Monitoring » Parsing COBOL Messages

Post new topic  Reply to topic
 Parsing COBOL Messages « View previous topic :: View next topic » 
Author Message
kuladeep.dairy
PostPosted: Sat Feb 27, 2010 12:48 am    Post subject: Parsing COBOL Messages Reply with quote

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
View user's profile Send private message
mvic
PostPosted: Sat Feb 27, 2010 2:43 am    Post subject: Re: Parsing COBOL Messages Reply with quote

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
View user's profile Send private message
bruce2359
PostPosted: Sat Feb 27, 2010 10:58 am    Post subject: Reply with quote

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
View user's profile Send private message
fjb_saper
PostPosted: Sat Feb 27, 2010 10:28 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail
bruce2359
PostPosted: Sun Feb 28, 2010 8:17 am    Post subject: Reply with quote

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

MQSeries.net Forum Index » IBM MQ Performance Monitoring » Parsing COBOL Messages
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.