Environment value in 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
bikan
Premium Member
Premium Member
Posts: 128
Joined: Thu Jun 08, 2006 5:27 am

Environment value in routine

Post by bikan »

hi In routine I am taking value of environment variable

DSGetParamInfo(DSJ.ME,"$PATH",DSJ.PARAMDES.DEFAULT)

Now value of $PATH set in job is $PROJDEF
now when I rub the routine and when I try to display value of $PATH then it is showing as $PROJDEF and not actual path and then my job is getting aborted

I tried

DSGetParamInfo(DSJ.ME,"$PATH",DSJ.PARAMDEFAULT) but i found same result
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I would think you should be using DSJ.PARAMVALUE for the actual value rather than the seeing what the default value is.
-craig

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