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 Exception

Post new topic  Reply to topic
 PCF Exception « View previous topic :: View next topic » 
Author Message
goffinf
PostPosted: Wed Oct 10, 2012 5:01 am    Post subject: PCF Exception Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

MB version : 8.0.0.1
MQ version: 7.0.1.3

I am migrating a flow from MB v6.1 to v8. Everything works OK in v6.1

The flow creates a PCF message using the following ESQL (which is pretty standard as per the InfoCentre nad has been working OK).

Code:

SET OutputRoot.Properties = InputRoot.Properties;

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

SET OutputRoot.MQMD.MsgType = MQMT_REQUEST;
SET OutputRoot.MQMD.Format = MQFMT_ADMIN;
SET OutputRoot.MQMD.ReplyToQ = 'REPLYQ';
SET OutputRoot.MQMD.MsgSeqNumber = 1;


/* Command is 'Change Queue */

DECLARE refRequest REFERENCE TO OutputRoot.MQPCF;
SET refRequest.Type = MQCFT_COMMAND;
SET refRequest.StrucLength = MQCFH_STRUC_LENGTH;
SET refRequest.Version = MQCFH_CURRENT_VERSION;
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].* = 'TEMP';


/* Second parameter: Queue Type. */
SET refRequest.Parameter[2] = MQIA_Q_TYPE;
SET refRequest.Parameter[2].* = MQQT_LOCAL;

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

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

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

/* get rid of the unwanted folders now MQPCF has been serialised to the output body
   as a command message
*/

SET OutputRoot.MQPCF = NULL;
set OutputRoot.MQRFH2 = NULL;

-- reset the MQDM format
SET OutputRoot.MQMD.Format = MQFMT_ADMIN;

RETURN TRUE;



However, when I run this in MBv8/MQv7 I get the following error :-

Snippets from the ExceptionList :-

Code:

ParserException

Missing field value : Parameter.*

MQPCF

Exception whilst writing field name

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


It looks like the Parameter[n].* (field alias) is causing a problem ??

Is there something different in either Broker v8 or the version of MQ that I'm using that I am tripping over ??

Thanks

Fraser[/code][/quote]
Back to top
View user's profile Send private message
goffinf
PostPosted: Wed Oct 10, 2012 5:11 am    Post subject: Reply with quote

Chevalier

Joined: 05 Nov 2005
Posts: 401

Ahhh, panic over, the code above *does* work (I edited it slightly to disguise some queue names and this is where my error is in the actual code).

Sorry for wasting your time (measure twice, cut once) !

Fraser.
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 Exception
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.