Page 1 of 1

Retrieving already run job information to populate a table

Posted: Wed Oct 15, 2014 2:53 pm
by sharmabhavesh
Hi,
I ran a job wherein I am loading data from source to target after some transformations. Now I want to load the summary of this already run job into a table using Datastage. How can I retrieve the number of records passing through each link in the already run job.
Also, in a Datastage job, is it possible to retrieve other job information like last run status, last run start and end time.
I know we can generate a report through dsjob command but I want to do it an a Datastage job/sequence.

Posted: Wed Oct 15, 2014 3:28 pm
by ray.wurlod
Use a server job, or a BASIC Transformer stage in a parallel job, to invoke the appropriate DataStage macros to retrieve the information in which you're interested. If there's no DataStage macro, use a DataStage API function.

Posted: Wed Oct 15, 2014 5:54 pm
by qt_ky
See this post also, in case you are interested:

ETL Statistics

Posted: Wed Oct 15, 2014 6:15 pm
by ray.wurlod
You can find ETLStats here when you're ready.