MQSeries.net
Search
Tech Exchange
Education
Certifications
Library
Info Center
SupportPacs
LinkedIn
Search
FAQ
 Â
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
»
having issue with compute node coding
having issue with compute node coding
«
View previous topic
::
View next topic
»
Author
Message
dsreddy447
Posted: Tue Sep 15, 2015 9:01 pm
Post subject: having issue with compute node coding
Novice
Joined: 20 Aug 2015
Posts: 12
my flow is like
MQinput node --> compute node --> file output --> compute
in
1st compute node
:
BROKER SCHEMA com.file.mq.user
CREATE COMPUTE MODULE MQ2FILE_FLOW_Compute
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
CALL CopyEntireMessage();
SET Environment.IQname = InputRoot.MQMD.SourceQueue;
IF InputRoot.XMLNSC.details.empid > 500 THEN
SET OutputLocalEnvironment.destination.file.name = 'Invoice500.txt';
ELSE
SET OutputLocalEnvironment.destination.file.name = 'Invoice.txt';
END IF;
RETURN TRUE;
END;
CREATE PROCEDURE CopyEntireMessage() BEGIN
SET OutputRoot = InputRoot;
END;
END MODULE;
and I am getting output and in 2nd compute node I am writing
BROKER SCHEMA com.file.mq.user
CREATE COMPUTE MODULE MQ2FILE_FLOW_Compute1
CREATE FUNCTION Main() RETURNS BOOLEAN
BEGIN
-- CALL CopyMessageHeaders();
-- CALL CopyEntireMessage();
SET q = Environment.IQname;
SET OutputLocalEnvironment = InputLocalEnvironment;
RETURN TRUE;
END;
END MODULE;
In this coding I am getting warning on SET q = Environment.IQname;
please let me know what I did is correct or do I need to change anything.
GOAL:
I have set debugger on this entire flow. I want output at the 2nd compute node as entire message and SourceQueue name.
I set on both compute mode property in compute node as Message and Localenvironment.
please let me know where the mistake happend ??[/img]
Back to top
Simbu
Posted: Tue Sep 15, 2015 10:37 pm
Post subject:
Master
Joined: 17 Jun 2011
Posts: 289
Location: Tamil Nadu, India
Hi, Before moving to this issue, have you tried to resolve the issue mentioned in the below post raised by you. you are doing the same here as well.
http://www.mqseries.net/phpBB2/viewtopic.php?t=70984&sid=d7c8306a0d1febd5de3f2a7690e2903f
Back to top
Esa
Posted: Tue Sep 15, 2015 11:37 pm
Post subject:
Grand Master
Joined: 22 May 2008
Posts: 1387
Location: Finland
ESQL variables must be declared before using.
Back to top
Display posts from previous:
All Posts
1 Day
7 Days
2 Weeks
1 Month
3 Months
6 Months
1 Year
Oldest First
Newest First
Page
1
of
1
MQSeries.net Forum Index
»
WebSphere Message Broker (ACE) Support
»
having issue with compute node coding
Jump to:
Select a forum
General Discussion
----------------
Read First for All New to IBM MQ, Integration, Messaging, WebSphere - Only Moderators Post Here
General Discussion
Messaging and Integration Technologies FAQ
News/Updates
Links
Job Seekers
Job Postings
General Forums Information
Requirements, Wishlists & Enhancement Requests
----------------
RFEs - Requirements, Wishlists & Enhancement Requests - Open Forum
IBM MQ Support
----------------
General IBM MQ Support
IBM MQ Cloud and SaaS, Cloud Hybrid and Containers
IBM MQ Installation/Configuration Support
Clustering
IBM MQ Telemetry / Low Latency Messaging / Everyplace
Mainframe, CICS, TXSeries
iSeries, OpenVMS, HP-NSS
IBM MQ Performance Monitoring
IBM MQ Security
IBM MQ Development
----------------
IBM MQ Java / JMS
IBM MQ API Support
Multiphase Commit
User Exits
WebSphere Message Broker
----------------
WebSphere Message Broker (ACE) Support
WMB Patterns Repository - Available for Download
WebSphere Application Server
----------------
WebSphere Application Server
Web Services
----------------
WebSphere DataPower
Products that use IBM MQ
----------------
Workflow Engines - IBM MQ Workflow & Business Process Choreographer
WebSphere Process Server (WID/WPS/WAS+)
WebSphere Interchange Server + Adapters
IBM MQ File Transfer Edition
Resources, Files, Samples, Archives, Misc
----------------
Files and Code Samples
Archives - All
Challenge Forum
Sponsored Forums
----------------
Cressida Technology
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.