Author |
Message
|
DELLIPIZ |
Posted: Thu Nov 06, 2008 6:54 pm Post subject: Reading PART of an MQ message. |
|
|
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 |
|
 |
fjb_saper |
Posted: Thu Nov 06, 2008 8:27 pm Post subject: |
|
|
 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 |
|
 |
DELLIPIZ |
Posted: Thu Nov 06, 2008 9:09 pm Post subject: |
|
|
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 |
|
 |
fjb_saper |
Posted: Fri Nov 07, 2008 3:13 am Post subject: |
|
|
 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 |
|
 |
zpat |
Posted: Fri Nov 07, 2008 6:01 am Post subject: |
|
|
 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 |
|
 |
|