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 » Environment variables usage.

Post new topic  Reply to topic
 Environment variables usage. « View previous topic :: View next topic » 
Author Message
pratikp.vasani
PostPosted: Tue Jul 12, 2011 1:06 am    Post subject: Environment variables usage. Reply with quote

Novice

Joined: 04 Jul 2011
Posts: 11

Hi,
I am assigning Evvironment variables with vales from the rows in the db.
They are gettinga assigned also but when I am setting some variables with the Environment variables it is not getting assigned.

SET Environment.Variables.ChildTable.Details.Values[] = SELECT B1.FLIGHT_DESIG,B1.FLIGHT_NUM,B1.FLIGHT_SUFFIX,B1.FIRST_LEG,B1.DEP_STA,B1.DEP_TIME,B1.ARR_STA,B1.SCH_ARR_DATE FROM Database.{SCHEMANAME}.{TABLENAME2}AS B1
WHERE B1.FLIGHT_NUM = vFlightNumber
AND B1.FIRST_LEG= vOperatingDateValue
AND B1.FLIGHT_DESIG = vFlightDesignator
AND B1.FLIGHT_SUFFIX = vOperationalSuffix;

After this the complete tree is formed but

SET test = Environment.Variables.ChildTable.Details.Values[vCounter].DEP_STATION;

The test variable is assigned a NULL value.

How to use the Environment variables in this case.
Back to top
View user's profile Send private message
rglack10
PostPosted: Tue Jul 12, 2011 1:21 am    Post subject: Re: Environment variables usage. Reply with quote

Apprentice

Joined: 06 Jul 2011
Posts: 34

pratikp.vasani wrote:
Hi,
I am assigning Evvironment variables with vales from the rows in the db.
They are gettinga assigned also but when I am setting some variables with the Environment variables it is not getting assigned.

SET Environment.Variables.ChildTable.Details.Values[] = SELECT B1.FLIGHT_DESIG,B1.FLIGHT_NUM,B1.FLIGHT_SUFFIX,B1.FIRST_LEG,B1.DEP_STA,B1.DEP_TIME,B1.ARR_STA,B1.SCH_ARR_DATE FROM Database.{SCHEMANAME}.{TABLENAME2}AS B1
WHERE B1.FLIGHT_NUM = vFlightNumber
AND B1.FIRST_LEG= vOperatingDateValue
AND B1.FLIGHT_DESIG = vFlightDesignator
AND B1.FLIGHT_SUFFIX = vOperationalSuffix;

After this the complete tree is formed but

SET test = Environment.Variables.ChildTable.Details.Values[vCounter].DEP_STATION;

The test variable is assigned a NULL value.

How to use the Environment variables in this case.


Is it because in the SELECT statement you refer to DEP_STA but in the SET command you refer to DEP_STATION?

Also what is vCounter? How is it being set etc?
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 » Environment variables usage.
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.