Posted: Fri Jul 29, 2011 1:22 am Post subject: CONNAME from DIS QSTATUS TYPE(HANDLE) too short
Acolyte
Joined: 15 May 2001 Posts: 71 Location: Netherlands
Guys - here's a nice one. I have a set of tools written in C which collect information about channels and queues. I noticed that the CONNAME attribute of the DIS QS TYPE(HANDLE) had cut off the end of this field. It would typically be the port number.
It also happens via runmqsc:
If you look carefully, the conname has a missing bracket.
It is worse if the conname has xxx.xxx.xxx.xxx(xxxxx) which is 22 bytes.
This works fine when doing the DIS CHS command.
The response I had from IBM is that this is just a DOC error and that the length of the field returned in the qstatus is 20 bytes - ie MQ_SHORT_CONN_NAME_LENGTH - but I am expecting MQ_CONN_NAME_LENGTH.
Joined: 15 May 2001 Posts: 71 Location: Netherlands
Here's a nice surprise: the IBM support person has acknowledged my concerns.. and added his own: once we go IPV6 the SHORt conname just won't do. I'll await the official response... cheers... Ruud
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