To get a list of DataStage jobs that are running use a command :
i.e. -
>ps -ef | grep -v grep | grep DSD.RUN
"Inv_Rep3_word" and "stand1" is the running job names.
We can use this command in shell script to get the list of running jobs whenever we want or can schedule in cron to get hourly report.
To get the job list only, use below command -
ps -ef | grep DSD.RUN | grep -v grep | awk '{print $10}'
To get the job list only, use below command -
ps -ef | grep DSD.RUN | grep -v grep | awk '{print $10}'
This will give you the running job list, awk command need to be modify as per your server installation host whether it is Linux or Windows.
Script:
Shell Script for listing out Running Datastage jobs
https://www.facebook.com/datastage4you
https://twitter.com/datagenx
https://plus.google.com/+AtulSingh0/posts
https://groups.google.com/forum/#!forum/datagenx
No comments:
Post a Comment