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 » General Discussion » Reading a message and interpreting MQMD structure from SHELL

Post new topic  Reply to topic
 Reading a message and interpreting MQMD structure from SHELL « View previous topic :: View next topic » 
Author Message
prasadam
PostPosted: Wed Jul 13, 2005 9:39 am    Post subject: Reading a message and interpreting MQMD structure from SHELL Reply with quote

Newbie

Joined: 11 Jul 2005
Posts: 4

Hey Guys,

How you all doing?. This is my first post on the site.

I am wondering whether we can read MQ - messages via K shell script on an AIX box. Also I like to read properties of the message like priority, sending application etc from the shell.

Any help/pointers are greatly appreciated.

Thank you very much

Prasad.
Back to top
View user's profile Send private message
jefflowrey
PostPosted: Wed Jul 13, 2005 9:53 am    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

Do you know Perl very well?
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Jul 13, 2005 9:59 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

Ma89 supportpac provides an API for perl scripts. As far as I know, there's nothing for ksh (outside of running a utility that dumps the message to a file and then parsing the file, but that's messy and probably not very reliable)
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
prasadam
PostPosted: Wed Jul 13, 2005 11:28 am    Post subject: Reply with quote

Newbie

Joined: 11 Jul 2005
Posts: 4

This is the site and forum to get help. Thank you all.

Thank you very much for your quick replies.

Yes, from your help I see I can do things with PERL.
So, let us say I go with PERL. In project documentation what should I note down: like...

Right now, there is NO way to read MQ messages and/or issue MQI calls via shell.

OR shall I write..

There may be methods but they are too costly to implement rather than to go with this PERL solution.

Thanks,
Prasad.
Back to top
View user's profile Send private message
wschutz
PostPosted: Wed Jul 13, 2005 11:33 am    Post subject: Reply with quote

Jedi Knight

Joined: 02 Jun 2005
Posts: 3316
Location: IBM (retired)

I'd vote for:

"Right now, there is NO way to read MQ messages and/or issue MQI calls via a shell script (other than PERL)".
_________________
-wayne
Back to top
View user's profile Send private message Send e-mail AIM Address
jefflowrey
PostPosted: Wed Jul 13, 2005 12:42 pm    Post subject: Reply with quote

Grand Poobah

Joined: 16 Oct 2002
Posts: 19981

prasadam wrote:
Right now, there is NO way to read MQ messages and/or issue MQI calls via shell.


No direct way.

Backticks make anything possible.
_________________
I am *not* the model of the modern major general.
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Wed Jul 13, 2005 8:10 pm    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3264
Location: London, ON Canada

All,

<Vendor Plug>

Well, the MQ Batch Toolkit (MQBT) can definitely fill this void. In your shell script, it can invoke MQBT to read 1 or messages from a queue and output it to stdout (or a file).

With the '-M' parameter, it will also output the MQMD header.

For more information on MQ Batch Toolkit or to download a 30-day trial, go to:
http://www.capitalware.biz/mqbt_overview.html

</Vendor Plug>

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
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 » General Discussion » Reading a message and interpreting MQMD structure from SHELL
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.