How to find the last link of an etl job?
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 47
- Joined: Fri Sep 23, 2005 6:01 pm
How to find the last link of an etl job?
Hi,
DataStage: 7.5 OS: Windows
Is there a way to find the last link of an ETL job?. My requirement is to find out the start time, end time, status & rows processed by an etl job present in a project. The project has around 5000 jobs. We have an routine to give the start time, end time and status. Now i have to get the rows processed. If am able to get the last link,i can pass that to DSGetLinkInfo macro to get that.
Thanks,
Bharathappriyan
DataStage: 7.5 OS: Windows
Is there a way to find the last link of an ETL job?. My requirement is to find out the start time, end time, status & rows processed by an etl job present in a project. The project has around 5000 jobs. We have an routine to give the start time, end time and status. Now i have to get the rows processed. If am able to get the last link,i can pass that to DSGetLinkInfo macro to get that.
Thanks,
Bharathappriyan
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
-
- Participant
- Posts: 47
- Joined: Fri Sep 23, 2005 6:01 pm
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
The job report XML has links defined as output or input. You need to figure out which is really output to you. The row counts are all attached to links and stages. The starting point is an input stage with only input rows. Same on the output stages with only output rows. If that makes sense. All stages with inputs and outputs are in the middle.
So you would need to process the input and outputs into lookups. Next process the rows. Put into tables and run SQL to find only inputs and only outputs. Compare to your job design.
A lot of work.
So you would need to process the input and outputs into lookups. Next process the rows. Put into tables and run SQL to find only inputs and only outputs. Compare to your job design.
A lot of work.
Mamu Kim
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
(This is probably not helpful.)
The last link in a job is the one that was added last (most recently) to the job design, and is therefore the link with the highest internal link/pin number.
The last link in a job is the one that was added last (most recently) to the job design, and is therefore the link with the highest internal link/pin number.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.