How to call Environment variable in server routine

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
ragunathan13
Participant
Posts: 50
Joined: Mon Sep 25, 2006 11:18 pm
Location: Chennai
Contact:

How to call Environment variable in server routine

Post by ragunathan13 »

hi Guys,


Can we call a environment variable(User Defined) in a routine. Will it be possible. Can anybody suggest on this.

Thanks in advance
Ragunathan J
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

Define "call a environment variable(User Defined) in a routine" ???
IF you mean get its value then yes you can. This has been covered a few times in the recent past. Search for more details.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The method is different depending on whether the environment variable was defined in the login shell or in the DataStage Administrator. Be wary of this while searching.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ragunathan13
Participant
Posts: 50
Joined: Mon Sep 25, 2006 11:18 pm
Location: Chennai
Contact:

Post by ragunathan13 »

Hi ray..

Yes, the environment variable was defined in the DataStage Administrator.

I search by using thee String -- "How to read Environment variable in routine". I found few posts. but i did't get clear idea from that. can u help me pls.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Did you check this posting? Again, depends on what you mean by 'call'. It that just means 'use' then just use it directly, dollar sign and all.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply