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 » MQSETMP with MQTYPE_NULL does not create the property...

Post new topic  Reply to topic
 MQSETMP with MQTYPE_NULL does not create the property... « View previous topic :: View next topic » 
Author Message
jlamond
PostPosted: Thu Apr 29, 2021 7:23 am    Post subject: MQSETMP with MQTYPE_NULL does not create the property... Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

When I run the below code I don't get any error but the property is not inserted into my Message Handle... This is on Linux Red Hat in 'C'.

memset(pPropName, 0x00, sizeof(PropName));
memset(pPropValue, 0x00, sizeof(PropValue));
memcpy(pPropName, Property4Name, strlen(Property4Name));

CHARV.VSLength = strlen(Property4Name);
Type = MQTYPE_NULL;
ValueLength = 0;

MQSETMP(HCONN, HMSG, &SMPO, &CHARV, &PD, Type, ValueLength, pPropValue, &mqcc, &mqrsn);
if (mqcc)
{
printf("mqputWithProperty, (4) MQSETMP completion code[%d], reason code[%d]\n", mqcc, mqrsn);
return;
}

Any clue?
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
markt
PostPosted: Thu Apr 29, 2021 9:51 am    Post subject: Reply with quote

Knight

Joined: 14 May 2002
Posts: 503

Use NULL directly not pPropValue in the SETMP call
Back to top
View user's profile Send private message
jlamond
PostPosted: Thu Apr 29, 2021 11:32 pm    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Already did that and got the same result.
I always get a Completion code of 0 and a reason code of 0, but the property is not added...
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
RogerLacroix
PostPosted: Wed May 05, 2021 9:40 am    Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3253
Location: London, ON Canada

Did you issue the MQCRTMH (Create Message Handle) MQ API call before issuing MQSETMP MQ API call?

There is an IBM MQ sample called amqsstma.c that you should have a look at and model your code after.

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
jlamond
PostPosted: Wed May 05, 2021 11:21 pm    Post subject: Reply with quote

Voyager

Joined: 28 May 2002
Posts: 94
Location: Paris

Yes I did.
My test program does create one property for each property type. The only one that does not work properly is for MQTYPE_NULL. The property does not get created in the message handle. All others are present.
JM
_________________
Jean-Marc
Back to top
View user's profile Send private message Send e-mail
hughson
PostPosted: Thu May 06, 2021 9:06 pm    Post subject: Reply with quote

Padawan

Joined: 09 May 2013
Posts: 1914
Location: Bay of Plenty, New Zealand

jlamond wrote:
The property does not get created in the message handle. All others are present.


Sounds like a defect then, since the documentation appears to suggest what you have done should work. You should raise a case with IBM
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message 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 » MQSETMP with MQTYPE_NULL does not create the property...
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.