Regarding DSJ.JOBPID

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
pramod_au
Participant
Posts: 30
Joined: Thu Feb 06, 2003 8:30 am
Location: London,UK

Regarding DSJ.JOBPID

Post by pramod_au »

Hi

jobpid= DSGetJobInfo (DSJ.ME, DSJ.JOBPID) return me "0" always.. I am not sure whether this is PID right :?:
Can i use this jobpid to kill a job from unix :idea: ?

Thanks
Thanks
Pramod
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

I just wrote an empty server job (on AIX) with one line in the job control:

CALL DSLogInfo('My PID is "':DSGetJobInfo(DSJ.ME,DSJ.JOBPID):'".','')

and I get the UNIX pid returned to me correctly.

If you try this from the manager in a test run for a routine it won't work (since you are not inside a job run).

Addressing your other question or point: I recommend never to use a UNIX kill command unless there is no other way.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The job PID is usually findable through the early entries in the job's log and/or through its DSD.RUN entry in &PH&.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply