|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Environment variables usage. |
« View previous topic :: View next topic » |
Author |
Message
|
pratikp.vasani |
Posted: Tue Jul 12, 2011 1:06 am Post subject: Environment variables usage. |
|
|
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 |
|
 |
rglack10 |
Posted: Tue Jul 12, 2011 1:21 am Post subject: Re: Environment variables usage. |
|
|
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 |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|