Author |
Message
|
Maverick_in |
Posted: Wed Mar 08, 2006 1:57 am Post subject: Usage of Environmental Variables |
|
|
Novice
Joined: 08 Mar 2006 Posts: 13
|
hi,
Please help me understand if the below syntax is Valid.
Environment.variablename.
eg:- Environment.ChannelID= channelID.
Note: I have not mentioned (the keyword Variables)
In all the manuals, it says that syntax is Environment.Variables.XYX,
however, I saw the above syntax in one of the Flows which is successfully running in the production. Hence please clarify.
Thanks for your speedy response. _________________ Thanks,
Maverick |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 08, 2006 2:17 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
|
Back to top |
|
 |
Maverick_in |
Posted: Wed Mar 08, 2006 2:39 am Post subject: |
|
|
Novice
Joined: 08 Mar 2006 Posts: 13
|
hi elvis
thanks for ur valuable suggestion,
can we write like this (Environmental.variablename..) in MQSI 2.1
_________________ Thanks,
Maverick |
|
Back to top |
|
 |
elvis_gn |
Posted: Wed Mar 08, 2006 2:58 am Post subject: |
|
|
 Padawan
Joined: 08 Oct 2004 Posts: 1905 Location: Dubai
|
Hi Maverick_in,
I guess you should be able to....it should apply accross all versions.
Regards. |
|
Back to top |
|
 |
shalabh1976 |
Posted: Wed Mar 08, 2006 3:54 am Post subject: |
|
|
 Partisan
Joined: 18 Jul 2002 Posts: 381 Location: Gurgaon, India
|
It works in V2.1 _________________ Shalabh
IBM Cert. WMB V6.0
IBM Cert. MQ V5.3 App. Prog.
IBM Cert. DB2 9 DB Associate |
|
Back to top |
|
 |
jefflowrey |
Posted: Wed Mar 08, 2006 5:37 am Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
Environment.Variables has always only been a convention.
You can create any subtrees of Environment that you want, using any names. But it makes it easier for everyone if you keep stuff in Environment.Variables. Then if I write a plug-in, for example, I know that I can create Environment.PluginName, and never worry about having my Environment.PluginName.Date overwrite your Environment.Variables.Date. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|