Posted: Wed Oct 10, 2012 5:01 am Post subject: PCF Exception
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 ??
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