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 IBM MQ Support » Reading PART of an MQ message.

Post new topic  Reply to topic
 Reading PART of an MQ message. « View previous topic :: View next topic » 
Author Message
DELLIPIZ
PostPosted: Thu Nov 06, 2008 6:54 pm    Post subject: Reading PART of an MQ message. Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Hello,

My customer is sending multiple ISO 8583 records to my trigger queue on MVS. However, they are all coming in one MQ message. So even if they send 5 ISO-8583s, they are all going in one MQ message. If I know the length of the individual ISO-8583 record, is it possible for me to do an MQGET to receive only one 1100 at a time... instead of pulling all 5 of them in at once? If so, how can I do that in a PL1 program?

Thanks!
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Nov 06, 2008 8:27 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Look up the programmer's manual and the cobol/pl1 examples
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
DELLIPIZ
PostPosted: Thu Nov 06, 2008 9:09 pm    Post subject: Reply with quote

Acolyte

Joined: 08 Oct 2003
Posts: 70

Can you point me to a page in a manual that has what you are referring to? I am in the 'Application Programming Reference' manual. I can't seem to find something that would allow me to pull only part of the message. Does it allow you to pull it based on length or is it some other type of criteria.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Nov 07, 2008 3:13 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Well you retrieve the full message into a buffer. It is up to your program as to how you read / manipulate that buffer, yes?
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
zpat
PostPosted: Fri Nov 07, 2008 6:01 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

You can set a message buffer length and receive a truncated message if you want to using MQGMO_ACCEPT_TRUNCATED_MESSAGE

However you can't then request the next part of the message. In your case you should get the entire message and then loop around using a pointer into the buffer.

It's been a while since I coded PL1, but you would declare a structure with a pointer. Increment the pointer by the length of each data item while you have data remaining in the message buffer.
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 » General IBM MQ Support » Reading PART of an MQ message.
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.