Attach DSJ.JOBPID during job

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

travissolt
Participant
Posts: 51
Joined: Mon Feb 05, 2007 1:53 pm

Post by travissolt »

Im with ya now. Too bad the help isnt that descrptive.
travissolt
Participant
Posts: 51
Joined: Mon Feb 05, 2007 1:53 pm

Post 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?
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post 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.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply