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 » Need Some Help!

Post new topic  Reply to topic
 Need Some Help! « View previous topic :: View next topic » 
Author Message
anon_kb
PostPosted: Fri Feb 27, 2015 5:29 am    Post subject: Need Some Help! Reply with quote

Acolyte

Joined: 13 Nov 2014
Posts: 74

Code:
IF FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp1_location) IS NULL OR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp2_location) IS NULL THEN
      SET OutRef.value.ns2:logistic_network = NULL;
      
   
      SET Environment.Variables.FailureLogs = Environment.Variables.FailureLogs +1 ;
      SET OutRef.value.ns2:samp_net.ns2:failureName = LogNetRef.ns1:ID;
      SET Environment.Variables.FailureName = LogNetRef.ns1:ID;
      SET Environment.Variables.Failureid = LogNetRef.ns1:RevName;
      SET count = count + 1;
      
      PROPAGATE TO TERMINAL 0 DELETE NONE ;
      ITERATE NEXTITEM;
      END IF;



- problem is samp1_location and samp2_location has values inside but it process the Null function and It wont Iterate to NextItem.
Back to top
View user's profile Send private message
adubya
PostPosted: Fri Feb 27, 2015 5:33 am    Post subject: Reply with quote

Partisan

Joined: 25 Aug 2011
Posts: 377
Location: GU12, UK

Run a user trace
Back to top
View user's profile Send private message Send e-mail
Esa
PostPosted: Fri Feb 27, 2015 8:14 am    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Code:

IF FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp1_location) IS NULL OR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp2_location) IS NULL THEN
      SET OutRef.value.ns2:logistic_network = NULL;

      -- add these lines:
     
      DECLARE test1 CHAR FIELDNAME(OutRef.value.ns2:samp_net.ns2:samp1_location);

      DECLARE test2 CHAR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp1_location);

      DECLARE test3 CHAR FIELDNAME(OutRef.value.ns2:samp_net.ns2:samp2_location);

      DECLARE test4 CHAR FIELDVALUE(OutRef.value.ns2:samp_net.ns2:samp2_location);

      -- set a breakpoint at the next line and check the values of the test variables
      -- OR append the test variable values in the output message
   
      SET Environment.Variables.FailureLogs = Environment.Variables.FailureLogs +1 ;
      SET OutRef.value.ns2:samp_net.ns2:failureName = LogNetRef.ns1:ID;
      SET Environment.Variables.FailureName = LogNetRef.ns1:ID;
      SET Environment.Variables.Failureid = LogNetRef.ns1:RevName;
      SET count = count + 1;
     
      PROPAGATE TO TERMINAL 0 DELETE NONE ;
      ITERATE NEXTITEM;
      END IF;
Back to top
View user's profile Send private message
anon_kb
PostPosted: Sun Mar 01, 2015 8:23 pm    Post subject: Reply with quote

Acolyte

Joined: 13 Nov 2014
Posts: 74

Done testing, Data has been successfully reflected. meaning samp1_location and samp2_location has data inside. But my question is since it has data inside and the condition made it into false why would it process the said data inside the If condition. But my problem is with the Iteration, it just wont proceed after the If condition.
Back to top
View user's profile Send private message
Esa
PostPosted: Sun Mar 01, 2015 11:53 pm    Post subject: Reply with quote

Grand Master

Joined: 22 May 2008
Posts: 1387
Location: Finland

Then you probably haven't set up the loop and the label correctly.

Would you care to show us how you have done it?
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 » Need Some Help!
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.