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 IndexIBM MQ SecurityPCF LIKE NOT WORKING

Post new topicReply to topic
PCF LIKE NOT WORKING View previous topic :: View next topic
Author Message
pcouas
PostPosted: Thu Feb 07, 2019 8:36 am Post subject: PCF LIKE NOT WORKING Reply with quote

Voyager

Joined: 06 Sep 2011
Posts: 76

Hi

LIKE Command not Working
I want only AUTH_PROFILE_NAME begin by name Q

Regards

Code:

public List<String[]>  findAllArrayString(String qmanagerName)throws JrafDaoException {
      PCFMessageAgent pcfMessageAgent = null;
       List<String[]> listOLists = new ArrayList<String[]>();
      try {
         
            MqQmanager qm = qmanagerDAO.findByName(qmanagerName);
 
            PCFMessage request = new PCFMessage(CMQCFC.MQCMD_INQUIRE_AUTH_RECS);
          request.addParameter(CMQCFC.MQIACF_AUTH_OPTIONS, CMQCFC.MQAUTHOPT_NAME_ALL_MATCHING +  CMQCFC.MQAUTHOPT_ENTITY_EXPLICIT + CMQCFC.MQAUTHOPT_NAME_AS_WILDCARD);
          request.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "*");
      //request.addParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, "Q*"); //not working
          //request.addFilterParameter(CMQCFC.MQCACF_AUTH_PROFILE_NAME, CMQCFC.MQCFOP_NOT_LIKE, "Q*"); //not workibg

          request.addParameter(CMQCFC.MQIACF_OBJECT_TYPE, CMQC.MQOT_Q); //Type Queue

          pcfMessageAgent = openNewPCFMessageAgent(qm);
            PCFMessage[] responses = pcfMessageAgent.send(request);
            log.info("never here");
 
            return listOLists;
        } catch (MQException ex) {
            throw new JrafMQQmanagerException(qmanagerName,ex);
        } catch (IOException | JrafDomainException | RuntimeException ex) {
            throw new JrafDaoException(ex);
        }  finally {
           closePCFMessageAgent(qmanagerName,pcfMessageAgent);
        }
      
   }
   
Back to top
View user's profile Send private message
bruce2359
PostPosted: Thu Feb 07, 2019 8:51 am Post subject: Reply with quote

Poobah

Joined: 05 Jan 2008
Posts: 8498
Location: US: west coast, almost. Otherwise, enroute.

Please be more precise.

What does not working mean to you? Compile errors? Run-time error? If so, what errors do you see?

What have you tried? What results?
_________________
There are two types of people in this world:
1) Those that can extrapolate from incomplete data
Back to top
View user's profile Send private message
RogerLacroix
PostPosted: Thu Feb 07, 2019 1:47 pm Post subject: Reply with quote

Jedi Knight

Joined: 15 May 2001
Posts: 3133
Location: London, ON Canada

I'm going to guess that profile name has the same restriction as objext name for "not like". See the following: http://www.mqseries.net/phpBB2/viewtopic.php?t=69754

Regards,
Roger Lacroix
Capitalware Inc.
_________________
Capitalware: Transforming tomorrow into today.
Connected to MQ!
Twitter
Back to top
View user's profile Send private message Visit poster's website
hughson
PostPosted: Thu Feb 07, 2019 2:48 pm Post subject: Re: PCF LIKE NOT WORKING Reply with quote

Grand Master

Joined: 09 May 2013
Posts: 1253
Location: Bay of Plenty, New Zealand

pcouas wrote:
Hi

LIKE Command not Working
I want only AUTH_PROFILE_NAME begin by name Q

I don't think it is possible to do what you want.

See the description of Inquire Authority Records (PCF command).

It says of the ProfileName field:-

IBM Knowledge Center wrote:
If you set Options to MQAUTHOPT_NAME_AS_WILDCARD, the only valid value for ProfileName is a single asterisk (*). This means that all authority records that satisfy the values specified in the other parameters are returned.


Cheers,
Morag
_________________
Morag Hughson @MoragHughson
IBM MQ Technical Education Specialist
Get your IBM MQ training here!
MQGem Software
Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:
Post new topicReply to topic Page 1 of 1

MQSeries.net Forum IndexIBM MQ SecurityPCF LIKE NOT WORKING
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.