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 » Reading a message by columns

Post new topic  Reply to topic
 Reading a message by columns « View previous topic :: View next topic » 
Author Message
sivadharsan
PostPosted: Sat Jan 18, 2003 4:14 am    Post subject: Reading a message by columns Reply with quote

Newbie

Joined: 14 Jan 2003
Posts: 7

How to read an incoming message from a MQ as columns?

The message from MQ is predefined (when writing to a queue) into some columns (Ex: EmpID , Name , Address). When reading messages into the application a requirement arises to read the incoming message as the defined columns.

Is there any direct API support to do this? Or any smart way to handle this?
Back to top
View user's profile Send private message
kirani
PostPosted: Sat Jan 18, 2003 2:12 pm    Post subject: Reply with quote

Jedi Knight

Joined: 05 Sep 2001
Posts: 3779
Location: Torrance, CA, USA

You should write some split function, which will populate data into EmpId, Name, Address, etc. fields using the BUFFER returned by your MQGET call.
_________________
Kiran


IBM Cert. Solution Designer & System Administrator - WBIMB V5
IBM Cert. Solutions Expert - WMQI
IBM Cert. Specialist - WMQI, MQSeries
IBM Cert. Developer - MQSeries

Back to top
View user's profile Send private message Visit poster's website
TonyD
PostPosted: Sun Jan 19, 2003 1:18 pm    Post subject: Reply with quote

Knight

Joined: 15 May 2001
Posts: 540
Location: New Zealand

Check out the DB2MQ Functions:

http://www7b.software.ibm.com/dmdd/library/techarticle/wolfson/0108wolfson.html
Back to top
View user's profile Send private message Send e-mail
nimconsult
PostPosted: Sun Jan 19, 2003 11:14 pm    Post subject: Reply with quote

Master

Joined: 22 May 2002
Posts: 268
Location: NIMCONSULT - Belgium

It depends on the programming language you are using.

If you are working with something like C or Cobol or most procedural languages, you will generally map a pre-defined structure on the buffer pointer received from MQGET.

If you are working with Java, you will call methods methods of the MQMessage to retrieve requested data types (readInt, readString...).

Nicolas
_________________
Nicolas Maréchal
Senior Architect - Partner

NIMCONSULT Software Architecture Services (Belgium)
http://www.nimconsult.be
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 » Reading a message by columns
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.