Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8859079
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 14, 20262026-06-14T14:58:14+00:00 2026-06-14T14:58:14+00:00

i know we can make use of the where filter to help get more

  • 0

i know we can make use of the where filter to help get more specific result during running runmqsc. i have no problem with those operators like LT、GT、EQ、NE、LE and GE. However, as with LK、NL, it always failed. Please see the detail as below:

dis chl(SERVER.C01)
27 : dis chl(SERVER.C01)
AMQ8414: 显示通道细节。
 CHANNEL(SERVER.C01)                     CHLTYPE(SVRCONN)
 ALTDATE(2012-08-27)                     ALTTIME(16.05.40)
 COMPHDR(NONE)                           COMPMSG(NONE)
 DESCR( )                                HBINT(300)
 KAINT(AUTO)                             MAXINST(999999999)
 MAXINSTC(999999999)                     MAXMSGL(4194304)
 MCAUSER( )                              MONCHL(QMGR)
 RCVDATA( )                              RCVEXIT( )
 SCYDATA( )                              SCYEXIT( )
 SENDDATA( )                             SENDEXIT( )
 SHARECNV(10)                            SSLCAUTH(REQUIRED)
 SSLCIPH( )                              SSLPEER( )
 TRPTYPE(TCP)
dis chl(*) where(type lk SVRC*)
  28 : dis chl(*) where(chltype lk SVRC*)
 AMQ8569: 过滤器规范中的错误
 dis chl(*) where(chltype lk SVRC*

 AMQ8427: MQSC 命令的有效语法为:

 DISPLAY display_cmd
 WHERE( filter_keyword operator filter_value )

 operator := [ LT | GT | EQ | NE | LE | GE | CT | EX | LK | NL | CTG | EXG ]

In addition, how about CT and EX? Please help me out

WebSphere MQ
7.0.1.9

Thanks

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-14T14:58:15+00:00Added an answer on June 14, 2026 at 2:58 pm

    It is not clear whether you are having this problem with other object types but as for channels, filtering based on channel type is not allowed. This is probably because selection by type has always been supported anyway. Just specify TYPE or CHLTYPE in the display command:

    dis chl(*) chltype(svrconn)
         1 : dis chl(*) chltype(svrconn)
    AMQ8414: Display Channel details.
       CHANNEL(SYSTEM.AUTO.SVRCONN)            CHLTYPE(SVRCONN)
    AMQ8414: Display Channel details.
       CHANNEL(SYSTEM.DEF.SVRCONN)             CHLTYPE(SVRCONN)
    dis chl(*) type(svrconn)
         2 : dis chl(*) type(svrconn)
    AMQ8414: Display Channel details.
       CHANNEL(SYSTEM.AUTO.SVRCONN)            CHLTYPE(SVRCONN)
    AMQ8414: Display Channel details.
       CHANNEL(SYSTEM.DEF.SVRCONN)             CHLTYPE(SVRCONN)
    

    The Infocenter page for DISPLAY CHANNEL states:

    Almost any parameter that can be used to display attributes for this
    DISPLAY command. However, you cannot use the CMDSCOPE, QSGDISP, or
    MCANAME parameters as filter keywords. You cannot use TYPE (or
    CHLTYPE) if it is also used to select channels.

    I’m not sure how you might use TYPE or CHLTYPE other than to select channels and I’ve requested a clarification made to the page to explain that. In the meantime, be aware that selection on TYPE or CHLTYPE is not supported using the WHERE clause. Were there cases other than channels where you had trouble with LK and NK?

    UPDATE
    Responding to the comment, two things to be aware of. First, as per the Infocenter, “You cannot use a generic filter-value for parameters with numeric values or with one of a set of values.” This means, for example, that it is invalid to specify DIS CHL(*) WHERE(MCATYPE LK P*) because MCATYPE is specified by one of a set of values. It can be only PROCESS or THREAD. Nor would it be valid to specify DIS CHL(*) WHERE(LONGTMR LK 1*) because LONGTMR takes a numeric value.

    The second item of interest is the syntax of the quoting in the WHERE clause. Like all MQSC parameters, the WHERE clause folds unquoted values to UPPER CASE. Since WebSphere MQ evaluates these in case-sensitive fashion, something like DIS Q(*) WHERE(DESCR LK W*) works because many of the queues have a description beginning with WebSphere and the upper case W matches. However, DIS Q(*) WHERE(DESCR LK We*) fails because the lower case e is folded to upper case which then does not match the value in the description field. What does work here is DIS Q(*) WHERE(DESCR LK 'We*') where the string specifier is single-quoted.

    So the issues you are seeing may be due to use of the LK operator against a string value that is part of an enumeration, or possibly due to case sensitivity failing to match unquoted filter values.

    The CT and CTG and their complements are the operators to use when the filter keyword is a list. For example, in the NAMELIST object the attribute NAMES contains a list of values. Something like WHERE(NAMES LK SYS*) would be ambiguous because LK operates on unary values. So CT and CTG are provided as operators that work on sets. A couple of examples to demonstrate this syntax would then be:

    DIS NAMELIST(*) WHERE(NAMES CT SYSTEM.BROKER.DEFAULT.STREAM)
    DIS NAMELIST(*) WHERE(NAMES CTG SYS*)
    

    The first displays any NAMELIST objects where one of the entries in the NAMES attribute matches exactly. The second allows a similar match based on a generic string prefix. Be sure to quote if the expected value is in anything other than all UPPER CASE or if the value contains an embedded space.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I know I can use placeholder=some text here... but how to make it so
I just want to know that can i make an application which have some
Does anyone know I can make min-height work with the latest browsers? I am
For example, I know I can make a new row and enter values into
Anyone know how I can make a login button in Ruby on Rails for
Does anyone know how you can make a cocoa sheet with rounded corners like
I want to know how I can make a Java program where an unknown
I need to know how i can make a string like hello to Hello
I'm dying to know how I can make a GUI for ffmpeg and jhead
I know there are lots of tools on the net that can make our

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.