Can not put PutDate and PutTime into MQ header on queue

Document ID : KB000011626
Last Modified Date : 14/02/2018
Show Technical Document Details
Introduction:

In an MQ message, can PutDate and PutTime be set as 2 fields?

Question:

In an MQ message, can PutDate and PutTime be set as 2 fields?

Environment:
All supported DevTest Environments
Answer:

In MQ C++ API, putDate and putTime are 2 fields but in the Java API the put date and time is a single field called putDateTime (The time and date when the message was put).

DevTest does not build the MQ message header bytes directly, it uses the JAVA API. 

 

DevTest 9.x versions support as a single field "msg.putDateTime" and from DevTest 10.1 supports as 2 fields "msg.putDate" and "msg.putTime" 

Additional Information:

. C++ API documentation is available at: http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.csqzak.doc/fr13030_.htm you shared is for MQ C API where putDate and putTime are 2 fields but in the Java API the put date time field is a single field putDateTime. 

. Java API documentation is available at:: 

http://www.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.javadoc.doc/WMQJavaClasses/com/ibm/mq/MQMD.html.

 

. DevTest 10.1 documentation

https://docops.ca.com/devtest-solutions/10-1/en/release-notes/resolved-issues#ResolvedIssues-CannotPutPutDateandPutTimeintoMQHeaderonQueue