Page 2 of 2

Posted: Thu Mar 08, 2007 12:07 pm
by travissolt
Im with ya now. Too bad the help isnt that descrptive.

Posted: Thu Mar 08, 2007 12:12 pm
by travissolt
When assigning the Derivation GetEnvironment(%envvar%)

it doesn't like GetEnvironment($PPID) or GetEnvironment($$)

Is there a list of envvar that will work?

Posted: Thu Mar 08, 2007 12:54 pm
by DSguru2B
Ok well it was worth a try. The environment variables are defined in the
Datastage Administrator.
Do this, in the before stage subroutine put,

Code: Select all

export myPID=$$
And to get the PID, specify the following in the stage variable

Code: Select all

GetEnvironment($myPID) 

Hope that will work.