Unix Command to list the stages in a 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
ramkarthik
Participant
Posts: 27
Joined: Thu Jun 26, 2008 6:13 am
Location: chennai

Unix Command to list the stages in a job

Post by ramkarthik »

Can anyone provide me the unix command to list all the stages in a job?
ramkarthik
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

dsjob -lstages ProjectName JobName
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
bcarlson
Premium Member
Premium Member
Posts: 772
Joined: Fri Oct 01, 2004 3:06 pm
Location: Minnesota

Post by bcarlson »

The only caveat is that the stage name that is returned is the one that you gave it. In other words, the list is only as good as your naming conventions. For example, if I named my DB2 read stage as 'george', the list command would show 'george', and I would not have anything to indicate WHAT george is.

We just had to generate a report recently of all of our DataStage projects, jobs, stages and stage info. We used the command Ray listed to generate a list of stages, then the following command to get a bit more details about the stage:

dsjob -stageinfo <project> <job> <stagename>

Brad.
It is not that I am addicted to coffee, it's just that I need it to survive.
Post Reply