Page 1 of 1

Regarding DSJ.JOBPID

Posted: Fri Jul 29, 2005 5:39 am
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

Posted: Fri Jul 29, 2005 6:31 am
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.

Posted: Fri Jul 29, 2005 8:26 pm
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&.