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 » Segmented messages on z/OS

Post new topic  Reply to topic
 Segmented messages on z/OS « View previous topic :: View next topic » 
Author Message
bpugh
PostPosted: Mon Oct 04, 2004 6:51 am    Post subject: Segmented messages on z/OS Reply with quote

Novice

Joined: 27 Apr 2004
Posts: 24
Location: St. Louis, MO

I am using COBOL to write segmented messages to a queue on z/OS. My program uses the following flags:

IF LAST-IN-GROUP = 'Y'
COMPUTE MQMD-MSGFLAGS = MQMF-LAST-SEGMENT
ELSE
COMPUTE MQMD-MSGFLAGS = MQMF-SEGMENT
END-IF.

MOVE MQFMT-STRING TO MQMD-FORMAT.
COMPUTE MQPMO-OPTIONS = MQPMO-SYNCPOINT +
MQPMO-DEFAULT-CONTEXT +
MQPMO-LOGICAL-ORDER +
MQPMO-FAIL-IF-QUIESCING.

The queue has no index type. When someone tries to read the message from the queue, they get error 2394, invalid index type. (The person doing the GET is using MQGMO_COMPLETE_MSG, MQGMO_CONVERT, and MQGMO_SYNCPOINT.) If I change the index type on the queue to 'G' (group id), then when I do a PUT, I get error code 2365, segments not supported. I'm stuck in a Catch-22.

I would like to be able to put these segmented messages on the queue and allow a 3rd party to retrieve them using the MQGMO_COMPLETE_MSG option so they could do one GET and let MQ put it back together for them.

I must be missing something really simple. What are the proper flags/settings to use to put/get segmented messages on z/OS?

Thanks in advance!
Back to top
View user's profile Send private message
markt
PostPosted: Mon Oct 04, 2004 7:37 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 508

Groups are not the same as segments.
Groups are supported on MQ V5.3 for z/OS.
Segments are not.
Back to top
View user's profile Send private message
bpugh
PostPosted: Mon Oct 04, 2004 7:46 am    Post subject: Reply with quote

Novice

Joined: 27 Apr 2004
Posts: 24
Location: St. Louis, MO

So there is no way to make MQGMO_COMPLETE_MSG work on z/OS? The program getting the message will have to reassemble the pieces manually based on group id and sequence number?
Back to top
View user's profile Send private message
siliconfish
PostPosted: Mon Oct 04, 2004 8:07 am    Post subject: Reply with quote

Master

Joined: 12 Aug 2002
Posts: 203
Location: USA

Only SEGMENTATION is not supported on Z/OS, You can still use Message Grouping.

Use MQMF_MSG_IN_GROUP and MQMF_LAST_MSG_IN_GROUP

and remove MQMF_SEGMENT and MQMF_LAST_SEGMENT
_________________
siliconfish
Back to top
View user's profile Send private message
bpugh
PostPosted: Mon Oct 04, 2004 10:21 am    Post subject: Reply with quote

Novice

Joined: 27 Apr 2004
Posts: 24
Location: St. Louis, MO

Ok, thanks. I was doing that originally, but I was trying to make it easier for the receiving program. I was hoping to avoid forcing them to put the messages back together manually.
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 » Segmented messages on z/OS
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.