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 » MQ put C program using segmentation option

Post new topic  Reply to topic
 MQ put C program using segmentation option « View previous topic :: View next topic » 
Author Message
jags1891
PostPosted: Thu May 18, 2006 6:32 am    Post subject: MQ put C program using segmentation option Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

hi I am trying to modify the Mqput C program in such a way that it takes messages from the queue and if the messg is big, it will segment them in to multiple messages and write them to file system.


does anyone know what are the options/modifications that I have to do with sample MQPUT program to segment the messages and writing to file system
Back to top
View user's profile Send private message
Nigelg
PostPosted: Thu May 18, 2006 6:57 am    Post subject: Reply with quote

Grand Master

Joined: 02 Aug 2004
Posts: 1046

Add the following statements to the app
Code:

MD.version = 2;
MD.MsgFlags = MQMF_SEGMENTATION_ALLOWED;


The msg will automatically be split into segments if it exceeds MAXMSGL for the queue.

To get the complete msg, add this statement to amqsget0.c
Code:

MQGMO.Options |= MQGMO_COMPLETE_MSG;

_________________
MQSeries.net helps those who help themselves..
Back to top
View user's profile Send private message
jags1891
PostPosted: Thu May 18, 2006 11:08 am    Post subject: thanks Reply with quote

Apprentice

Joined: 15 May 2006
Posts: 32

thank you, it worked
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 » MQ put C program using segmentation option
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.