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 » Problem with Accessing Environment Tree Structure

Post new topic  Reply to topic
 Problem with Accessing Environment Tree Structure « View previous topic :: View next topic » 
Author Message
akir
PostPosted: Fri Jun 13, 2008 12:46 pm    Post subject: Problem with Accessing Environment Tree Structure Reply with quote

Acolyte

Joined: 28 Jun 2007
Posts: 51

In a for loop I am doing this
Code:

SET Environment.rfcLimit.var[rfcLimitIndex].rfcLimit[]=LIST{InIPoLimitRef};

so the debug message structure is
Code:

DebugMessage
 Message
 LocalEnvironment
 Environment
  com
  rfcLimit
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Overall_Limit = overalllimit1
     Undefined_Limit = undefinedlimit1
     Product_Category_GUID = asasd
     Category_ID = asd
     Deletion_Indicator_SRM_Purchasing_Document = ad
     Final_invoice_indicator = ad
     Final_Entry_Indicator__Goods_Services_ = sad
     Type_of_the__Partial__Limit = G
     Header_Number_of_the_Object_that_the_Limit_Refers_to = asd
     Item_Number_of_the_Object_that_the_Limit_Refers_to = asd
     Technical_Key__32_Character_GUID_ = as
     Technical_Key__32_Character_GUID_1 = sad
     Business_Document_Service__ID_of_Logical_System = sa
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Overall_Limit = overalllimit2
     Undefined_Limit = undefinedlimit2
     Type_of_the__Partial__Limit = G
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     Internal_Key_of_Data_Record__Global_Unique_Identifier_ = GUID
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Type_of_the__Partial__Limit = A
 ExceptionList

but when Iam accessing through like this
Code:

 FOR EnvRfcRef AS Environment.rfcLimit.var[] DO
   
   SET wastechar = EnvRfcRef.rfcLimit.Type_of_the__Partial__Limit ;
   set Environment.waste1=Environment.rfcLimit.var.rfcLimit.Type_of_the__Partial__Limit;

   -- some logic has to be implemented

  END FOR;
       


the loop is being traversed three times as should be but the wastechar is not getting any value.it is null.

Any Help would be appreciated.
_________________
Thanks and Regards,
Akir

Tell everyone what you want to do and someone will want to help you do it.-W. Clement Stone
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Gaya3
PostPosted: Sat Jun 14, 2008 2:30 am    Post subject: Re: Problem with Accessing Environment Tree Structure Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

akir wrote:

In a for loop I am doing this
Code:

SET Environment.rfcLimit.var[rfcLimitIndex].rfcLimit[]=LIST{InIPoLimitRef};

so the debug message structure is
Code:

DebugMessage
 Message
 LocalEnvironment
 Environment
  com
  rfcLimit
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Overall_Limit = overalllimit1
     Undefined_Limit = undefinedlimit1
     Product_Category_GUID = asasd
     Category_ID = asd
     Deletion_Indicator_SRM_Purchasing_Document = ad
     Final_invoice_indicator = ad
     Final_Entry_Indicator__Goods_Services_ = sad
     Type_of_the__Partial__Limit = G
     Header_Number_of_the_Object_that_the_Limit_Refers_to = asd
     Item_Number_of_the_Object_that_the_Limit_Refers_to = asd
     Technical_Key__32_Character_GUID_ = as
     Technical_Key__32_Character_GUID_1 = sad
     Business_Document_Service__ID_of_Logical_System = sa
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Overall_Limit = overalllimit2
     Undefined_Limit = undefinedlimit2
     Type_of_the__Partial__Limit = G
   var
    rfcLimit
     version = 3.0.0
     verb
     locale = en_US
     delta = false
     Internal_Key_of_Data_Record__Global_Unique_Identifier_ = GUID
     GUID_of_higher_level_sentence__header_or_item_ = GUID
     Type_of_the__Partial__Limit = A
[b] ExceptionList[/b]

--Why this exceptionList is coming over here


akir wrote:

Code:

 FOR EnvRfcRef AS Environment.rfcLimit.var[] DO
   
   SET wastechar = EnvRfcRef.rfcLimit.Type_of_the__Partial__Limit ;
   set Environment.waste1=Environment.rfcLimit.var.rfcLimit.Type_of_the__Partial__Limit;

   -- some logic has to be implemented

  END FOR;
       

the loop is being traversed three times as should be but the wastechar is not getting any value.it is null.

SET Environment.rfcLimit.var[rfcLimitIndex].rfcLimit[]=LIST{InIPoLimitRef};

you know var is repeating, this is the parent, under this rfcKLimit is also repeating this is the child node.

rfcLimit
|___var[]
|___rfcLimit[]


There is no index for this to search as this is not using the reference value at all.

set Environment.waste1=Environment.rfcLimit.var.rfcLimit.Type_of_the__Partial__Limit;

let us know some thing more on this from your side

Regards
Gayathri
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
Back to top
View user's profile Send private message
akir
PostPosted: Mon Jun 16, 2008 3:18 pm    Post subject: Re: Problem with Accessing Environment Tree Structure Reply with quote

Acolyte

Joined: 28 Jun 2007
Posts: 51

Quote:

--Why this exceptionList is coming over here

ExceptionList is just appearing.It is not being populated with any values as such.

Quote:

you know var is repeating, this is the parent, under this rfcLimit is also repeating this is the child node.

rfcLimit is not repeating.It appears only once for every var.

Quote:

rfcLimit
|___var[]
|___rfcLimit[]



So the structure is
rfcLimit
|___var[]
|___rfcLimit

Quote:

let us know some thing more on this from your side


Thanks.Am I clear enough ?
_________________
Thanks and Regards,
Akir

Tell everyone what you want to do and someone will want to help you do it.-W. Clement Stone
Back to top
View user's profile Send private message Send e-mail Yahoo Messenger
Gaya3
PostPosted: Mon Jun 16, 2008 9:42 pm    Post subject: Reply with quote

Jedi

Joined: 12 Sep 2006
Posts: 2493
Location: Boston, US

change your for loop
SET J = CARDINALITY(Environment.rfcLimit.var[]);
SET I = 1;
FOR I<=j DO
EnvRfcRef AS Environment.rfcLimit.var[I] ;
SET wastechar = EnvRfcRef.rfcLimit.Type_of_the__Partial__Limit ;
set Environment.waste1=Environment.rfcLimit.var[I].rfcLimit.Type_of_the__Partial__Limit;

-- some logic has to be implemented
SET I = I +1;
END FOR;
_________________
Regards
Gayathri
-----------------------------------------------
Do Something Before you Die
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 » Problem with Accessing Environment Tree Structure
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.