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 » WebSphere Message Broker (ACE) Support » PCF Commands to Inhibit a Queue

Post new topic  Reply to topic
 PCF Commands to Inhibit a Queue « View previous topic :: View next topic » 
Author Message
madhangi_j
PostPosted: Fri May 08, 2009 12:14 am    Post subject: PCF Commands to Inhibit a Queue Reply with quote

Newbie

Joined: 07 May 2009
Posts: 1

Hi,

We are using the following code to Inhibit a Queue. we are using WMB 6.1.
Flow is running without any exception but the Queue is not inhibited.

Same code works in lower version of WMB. Any help in this would be great.

CREATE NEXTSIBLING OF OutputRoot.Properties DOMAIN 'MQMD';

CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN 'MQADMIN' NAME 'MQPCF';



Please find the code



SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;

SET OutputRoot.MQMD.Format = MQFMT_ADMIN;

SET OutputRoot.MQMD.ReplyToQ = 'OUT';

SET OutputRoot.MQMD.MsgSeqNumber = 1;

SET OutputRoot.MQMD.Encoding = 546;



CREATE FIELD OutputRoot.MQPCF;

DECLARE refRequest REFERENCE TO OutputRoot.MQPCF;

SET refRequest.Type = 16;

--SET refRequest.StrucLength = MQCFH_STRUC_LENGTH;

SET refRequest.Version = 3;

SET refRequest.Command = MQCMD_CHANGE_Q;

SET refRequest.MsgSeqNumber = 1;

SET refRequest.Control = MQCFC_LAST;





/* First parameter: Queue Name. */

SET refRequest.Parameter[1] = MQCA_Q_NAME;

SET refRequest.Parameter[1].* = 'queue1';





/* Second parameter: Queue Type. */

SET refRequest.Parameter[2] = MQIA_Q_TYPE;

SET refRequest.Parameter[2].* = MQQT_LOCAL ;



/* Third parameter: Allow/Inhibit GET.*/

SET refRequest.Parameter[3] = MQIA_INHIBIT_GET;

SET refRequest.Parameter[3].* = MQQA_GET_INHIBITED;



SET OutputRoot.BLOB.BLOB = asbitstream(OutputRoot.MQPCF);

SET OutputRoot.MQPCF = null;

SET OutputRoot.MQMD.Format = MQFMT_ADMIN;
Back to top
View user's profile Send private message
MQEnthu
PostPosted: Fri May 08, 2009 12:51 am    Post subject: Reply with quote

Partisan

Joined: 06 Oct 2008
Posts: 329
Location: India

Check if your flow is pointing to the correct output queue..
_________________
-----------------------------------------------
It is good to remember the past,
but don't let past capture your future
Back to top
View user's profile Send private message
mqjeff
PostPosted: Fri May 08, 2009 3:18 am    Post subject: Reply with quote

Grand Master

Joined: 25 Jun 2008
Posts: 17447

Search for an old, 5 page log post with a lot of responses from JosephGramig.

There are some differences in the PCF parser between versions of WMB.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » WebSphere Message Broker (ACE) Support » PCF Commands to Inhibit a Queue
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.