ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » General IBM MQ Support » PYMQI DIS CONN w a filter

Post new topic  Reply to topic
 PYMQI DIS CONN w a filter « View previous topic :: View next topic » 
Author Message
bobbee
PostPosted: Tue Mar 14, 2023 5:36 am    Post subject: PYMQI DIS CONN w a filter Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Tue Mar 14, 2023 6:52 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
bobbee
PostPosted: Tue Mar 14, 2023 7:17 am    Post subject: Reply with quote

Knight

Joined: 20 Sep 2001
Posts: 541
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
View user's profile Send private message Send e-mail AIM Address
fjb_saper
PostPosted: Tue Mar 14, 2023 7:28 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20696
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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » General IBM MQ Support » PYMQI DIS CONN w a filter
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.