Details of all jobs running in various projects

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
srinagesh
Participant
Posts: 125
Joined: Mon Jul 25, 2005 7:03 am

Details of all jobs running in various projects

Post by srinagesh »

Hi !

We have multiple projects on the Datastage server and we have access to all the projects.

There is a need to get have a list of all jobs that run each day, when they run the duration of execution. I've looked in the director and manager tools and it seems that this information is available on a project by project basis, but I could not find a way to consolidate all the data into a single report.

Can you let me know if I can get this information in any fashion.

Regards
Nagesh
Simplicity is the ultimate sophistication
Woth
Participant
Posts: 24
Joined: Thu Mar 18, 2004 8:18 pm

Post by Woth »

Looks like API functions could help you there [Server job Developer's Guide].

Here are some of the functions you could use....
  • DSGetProjectList
    DSOpenProject
    DSGetProjectInfo
    DSGetJobInfo
hope it pushed you in the right direction
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Usiing dsjob comand, and by passing necessary parameters, you can fetch the number of projects available in the server. And by using the same dsjob and passing by different parametet, you can find the list of jobs available the project, and the respective time of finish can be found.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I would start with

ps -ef | grep phantom

Now the problem is what project do these jobs belong to.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There are no global tools; everything is unique to its own project. You could, of course, wrap per-project information gathering into a consolidated report using your own utility, be it a shell script or some kind of DataStage API utility.

Code: Select all

Foreach project
   Foreach job in project
      Foreach invocation of that job
         If job ran today
            Obtain statisitics
            Write to file/table
         EndIf
      End Foreach
   End Foreach
End Foreach
Hey, looks so simple!
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