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 » MOVE messages with java apl using PCF message

Post new topic  Reply to topic
 MOVE messages with java apl using PCF message « View previous topic :: View next topic » 
Author Message
gamawmb
PostPosted: Wed Mar 04, 2015 1:51 am    Post subject: MOVE messages with java apl using PCF message Reply with quote

Newbie

Joined: 29 Jul 2014
Posts: 4

Hi,

I want to move messages from quque A to queue B with PCF message. MQ version is 7.0.1.9 .

My code is:
Code:

public static void moveWithPCF() throws JMSException, IOException {
   try {
      PCFMessageAgent agent = new PCFMessageAgent("192.168.1.104", 1414, "SYSTEM.ADMIN.SVRCONN");
      PCFMessage request = new PCFMessage(CMQCFC.MQCMD_MOVE_Q);

      request.addParameter(MQConstants.MQCACF_FROM_Q_NAME, "A");
      request.addParameter(MQConstants.MQIACF_MOVE_TYPE, CMQCFC.MQIACF_MOVE_TYPE_ADD);
      request.addParameter(MQConstants.MQCACF_TO_Q_NAME, "B");
      
      PCFMessage[] responses = agent.send(request);
   } catch (PCFException pcfe) {
      System.err.println ("PCF error: " + pcfe);
   } catch (MQException mqe) {
      System.err.println (mqe);
   }  catch (IOException ioe){
      System.err.println (ioe);
   }
}


I have checked parameters, but i am still receiving error
MQJE001: Completion Code '2', Reason '3007'.

Sample from http://www-01.ibm.com/support/knowledgecenter/SSFKSJ_7.0.1/com.ibm.mq.javadoc.doc/WMQJavaClasses/com/ibm/mq/headers/pcf/PCFMessageAgent.html is executed with no errors

Any ideas what i am doing wrong?

Regrds
Back to top
View user's profile Send private message
zpat
PostPosted: Wed Mar 04, 2015 2:45 am    Post subject: Reply with quote

Jedi Council

Joined: 19 May 2001
Posts: 5866
Location: UK

I think you may find that PCF command is only supported on MQ v8 and maybe only on z/OS.

If you want to do this, you can look at using the QLOAD program (also now incorporated into the MQ product under some new name).
_________________
Well, I don't think there is any question about it. It can only be attributable to human error. This sort of thing has cropped up before, and it has always been due to human error.
Back to top
View user's profile Send private message
mqjeff
PostPosted: Wed Mar 04, 2015 6:06 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

zpat wrote:
only on z/OS.


MOVE QUEUE has been a zOS only MQSC command for a while, so I wouldn't be surprised if the PCF message was also zOS only... (it would really have to be).

But zOS has supported PCF messages since somewhere in the v7.x timeframe.
Back to top
View user's profile Send private message
gamawmb
PostPosted: Thu Mar 05, 2015 2:16 am    Post subject: Reply with quote

Newbie

Joined: 29 Jul 2014
Posts: 4

zpat, mqjeff thanks for information, our MQ is installed on z/Linux .
Back to top
View user's profile Send private message
mqjeff
PostPosted: Thu Mar 05, 2015 6:10 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

MQRC 3007 is MQRCCF_CFH_COMMAND_ERROR.

I'd start by double-checking the parameters you are sending to the PCF command, and verify their type and more importantly verify their order. It seems counter-intuitive, but you may need to specify the addParameter methods in the correct order of the PCF message.
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Thu Mar 05, 2015 6:57 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

gamawmb wrote:
zpat, mqjeff thanks for information, our MQ is installed on z/Linux .

z/Linux and z/OS are completely different animals. z/Linux behaves more like distributed than like z/OS...
_________________
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 » MOVE messages with java apl using PCF message
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.