Posted: Thu Apr 17, 2014 8:21 am Post subject: 2442 (MQRC_PROPERTY_NAME_ERROR) in MQSETMP call in MQ-COBOL
Newbie
Joined: 15 Apr 2014 Posts: 1
We have one requirement to send the RFH2 Header information with XML message to target queue.
Property name = TS_ENDService
Value = TestRequestProcessingServ/services/TestReqProcessingServ01
We are trying to use ‘MQSETMP’ call in MQ-COBOL program to set the above property and we are getting the reason code as 2442 (MQRC_PROPERTY_NAME_ERROR).
Below is the code we are using.
Code:
CALL 'MQCRTMH' USING W03-HCONN
CRTMSGOPTS
W03-HMSG
W03-COMPCODE
W03-REASON
CALL 'MQCRTMH' USING W03-HCONN
CRTMSGOPTS
W03-HMSG
W03-COMPCODE
W03-REASON
SET MQCHARV-VSPTR TO ADDRESS OF PROPERTYNAME
MOVE LENGTH OF PROPERTYNAME TO MQCHARV-VSLENGTH
MOVE TS-MQ-END-POINT OF CONFIG-REC TO W03-VALUE
MOVE LENGTH OF W03-VALUE TO W03-VALUELENGTH
MOVE MQPD-USER-CONTEXT TO MQPD-CONTEXT
MOVE MQTYPE-BYTE-STRING TO W03-TYPE
MOVE MQTYPE-STRING TO W03-TYPE
CALL 'MQSETMP' USING W03-HCONN
W03-HMSG
SETMSGOPTS
PROPERTYNAME
PROPDESC
W03-TYPE
W03-VALUELENGTH
W03-VALUE
W03-COMPCODE
W03-REASON
DISPLAY 'SETMP:'
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