|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
PYMQI DIS CONN w a filter |
« View previous topic :: View next topic » |
Author |
Message
|
bobbee |
Posted: Tue Mar 14, 2023 5:36 am Post subject: PYMQI DIS CONN w a filter |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
I am trying to issue in PYTHON3 PYMQI a:
DIS CONN(*) where(CHANNEL NE '')
I have tried many combinations but cannot seem to pass an empty string to the command for the filter. This is one variation. Any suggestions?
Code: |
str = ""
filter1 = pymqi.Filter(pymqi.CMQCFC.MQCACH_CHANNEL_NAME).not_equal(bytes(str, 'UTF-8'))
###
### Issure MQCMD_INQUIRE_CONNECTION
###
try:
### conn_response = pcf.MQCMD_INQUIRE_CONNECTION(conn_args)
conn_response=pcf.MQCMD_INQUIRE_CONNECTION({pymqi.CMQCFC.MQBACF_GENERIC_CONNECTION_ID:pymqi.ByteString(''),pymqi.CMQCFC.MQIACF_CONNECTION_ATTRS:pymqi.CMQCFC.MQIACF_ALL},filter1) |
TypeError: object of type 'StringFilter' has no len() |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 14, 2023 6:52 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Have you tried passing a null value? or a low value (all hex 00)?
The link I posted in your previous inquiry, with the java info for the field, had some indications about content of the field.  _________________ MQ & Broker admin |
|
Back to top |
|
 |
bobbee |
Posted: Tue Mar 14, 2023 7:17 am Post subject: |
|
|
 Knight
Joined: 20 Sep 2001 Posts: 545 Location: Tampa
|
I did try b'/00'. I also tried thinking I could pas the '' to the command. b'\'\''. All go the error on 0 length string. |
|
Back to top |
|
 |
fjb_saper |
Posted: Tue Mar 14, 2023 7:28 am Post subject: |
|
|
 Grand High Poobah
Joined: 18 Nov 2003 Posts: 20756 Location: LI,NY
|
Quote: |
If you specify a byte string of zero length, or one which contains only null bytes, information about all connection identifiers is returned. This value is the only value permitted for GenericConnectionId.
The length of the string is MQ_CONNECTION_ID_LENGTH. |
 _________________ MQ & Broker admin |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|