A:
md.MsgType = MQMT_DATAGRAM;
md.Persistence = MQPER_PERSISTENT;
md.Report = MQRO_NONE ;
// md.Expiry = 50; - (I didn't set any just take the default)
I've resolved the problem by setting the following values in MQPUT.
md.MsgType = MQMT_DATAGRAM;
md.Persistence = MQPER_PERSISTENT;
md.Report = MQRO_NONE ;
md.Expiry = 5 ...