Posted: Sat Jul 23, 2016 8:25 pm Post subject: MQRC 2142 on Pub/Sub
Acolyte
Joined: 03 Jun 2008 Posts: 71
I'm stuck on a probably simple issue that could use a second set of eyes. Any help would be much appreciated.
The flow is pretty simple (File Input -> MQ Header Node -> Compute Node -> Publish Node). Something is wrong with the way I'm creating the RFH2 header and its causing the flow to fail. I've followed the details in some of the other threads, but can't see what's going on. Chalk it up to rust I guess...
Code:
Code:
SET OutputRoot.Properties = InputProperties;
SET OutputRoot.MQMD = InputRoot.MQMD;
--(Setting the MQMD format in the header node)
--SET OutputRoot.MQMD.Format = MQFMT_RF_HEADER_2;
--CREATE NEXTSIBLING OF OutputRoot.MQMD DOMAIN('MQRFH2');
SET OutputRoot.MQRFH2.(MQRFH2.Field)Version = 2;
SET OutputRoot.MQRFH2.(MQRFH2.Field)Format = MQFMT_STRING;
SET OutputRoot.MQRFH2.(MQRFH2.Field)NameValueCCISD = 1208;
SET OutputRoot.MQRFH2.psc.Command = MQPS_PUBLISH;
SET OutputRoot.MQRFH2.psc.Topic = 'Items';
SET OutputRoot.DFDL.ItemFeed = InputRoot.DFDL.ItemFeed;
The first thing I saw was that your MQMD.Version = 1. That should be =2 (IMHO).
What are the settings in the MQHeader node?
Have you tried removing it and adding this line of ESQL
Code:
Create lastchild of OutputRoot name 'MQMD' domain 'MQMD';
and seeing what changes ensue
You might like to consider using an ALIAS Queue to do the publishing and writing to that using an MQOutput Node rather than a Publish node. _________________ WMQ User since 1999
MQSI/WBI/WMB/'Thingy' User since 2002
Linux user since 1995
Every time you reinvent the wheel the more square it gets (anon). If in doubt think and investigate before you ask silly questions.
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