Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.
Moderators: chulett , rschirm , roy
vinsashi
Participant
Posts: 150 Joined: Mon Aug 20, 2007 4:52 am
Location: singapore
Post
by vinsashi » Tue Jan 25, 2011 4:54 am
Hi,
I declared one user defined environmetal varible "rec_flag" in administrator.I called that one job parameters in job.and in transformer stage for one column i called that job parameter(derivation is like this:$rec_flag).When compiling it showing error.
Thanks
V................
nayanpatra
Participant
Posts: 41 Joined: Sat Jun 06, 2009 11:13 pm
Location: Kolkata
Post
by nayanpatra » Tue Jan 25, 2011 5:34 am
The derivation should not start with $ for job parameters in a transformer stage
Nayan
vinsashi
Participant
Posts: 150 Joined: Mon Aug 20, 2007 4:52 am
Location: singapore
Post
by vinsashi » Tue Jan 25, 2011 5:45 am
if we call that jobparameter we will get like that only........
DSguru2B
Charter Member
Posts: 6854 Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX
Post
by DSguru2B » Tue Jan 25, 2011 8:45 am
Use GetEnvironment() to retrieve an environment variable value.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
jwiles
Premium Member
Posts: 1274 Joined: Sun Nov 14, 2004 8:50 pm
Contact:
Post
by jwiles » Tue Jan 25, 2011 7:41 pm
Use GetEnvironment() to retrieve an environment variable value.
And do this as the initial value derivation for a stage variable and then reference the stage variable in the output column. You DON'T want to call GetEnvironment() in an output column derivation...not a good practice.
- james wiles
All generalizations are false, including this one - Mark Twain.
jwiles
Premium Member
Posts: 1274 Joined: Sun Nov 14, 2004 8:50 pm
Contact:
Post
by jwiles » Tue Jan 25, 2011 7:44 pm
nayanpatra wrote: The derivation should not start with $ for job parameters in a transformer stage
As an FYI...this has changed with 8x. You can now directly use $-named job parms in a transformer.
Regards,
- james wiles
All generalizations are false, including this one - Mark Twain.
ray.wurlod
Participant
Posts: 54607 Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:
Post
by ray.wurlod » Tue Jan 25, 2011 8:40 pm
... only if they're in the job as parameters.
GetEnvironment() can reference any environment variable available to the process.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.