Process id, how to find for a particular 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

Post Reply
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Process id, how to find for a particular job

Post by srini.dw »

Hi,

I know how to find the process id from Director, can you please let me know

1. how to find the process id for a particular job from UNIX command.
2. ps -ef|grep dsapi_slave|grep -v grep|grep USER_NAME

Above command is used to kill a particular job which i found in dsxchange, could not understand, plz explain

Regards,
Srini
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Don't kill anything you don't understand. There are better ways, beginning with issuing a Stop Job request.

From Director choose Cleanup Resources.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Post by srini.dw »

thanks for the answer

Can you plz let me know the below answer
1. how to find the process id for a particular job from UNIX command.

thanks
RelianceDss
Premium Member
Premium Member
Posts: 27
Joined: Wed Apr 11, 2007 12:53 am

Post by RelianceDss »

srini.dw wrote:thanks for the answer

Can you plz let me know the below answer
1. how to find the process id for a particular job from UNIX command.

thanks
you can do ps -ef | grep <jobname> to get the pid. Take care while working with this PID.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why do you want the process ID?

DO NOT KILL a job's process - it will have several child processes. If you kill the job's process these all turn into zombies.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Post by srini.dw »

Thanks Guys.... I needed that syntax.

Iam not going to kill any job.
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Post by srini.dw »

Thanks Guys.... I needed that syntax.

Iam not going to kill any job.
srini.dw
Premium Member
Premium Member
Posts: 186
Joined: Fri Aug 18, 2006 1:59 am
Location: Chennai

Post by srini.dw »

Thanks Guys.... I needed that syntax.

Iam not going to kill any job.
Last edited by srini.dw on Mon Jul 07, 2008 4:30 am, edited 2 times in total.
devidotcom
Participant
Posts: 247
Joined: Thu Apr 27, 2006 6:38 am
Location: Hyderabad

Post by devidotcom »

kill -9 PID

Use the above command. But please don't kill any process as mentioned to you earlier. This was for FYI.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are LOTS of processes. The player process PIDs can be logged by setting APT_PM_SHOW_PIDS environment variable.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

devidotcom wrote:kill -9 PID

Use the above command. But please don't kill any process as mentioned to you earlier. This was for FYI.
NEVER do a kill -9 {pid} for DataStage processes unless all other options have been tried.
Post Reply