DataStage Audit counts

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
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

DataStage Audit counts

Post by reddy »

Sir,

I have job with one source and one target with 3 links one for Insert and another for Update and another for Reject.

How can i get counts for all input links and output links means

source count,insert count,update count and reject counts along with job name,jobstaus and start and end times.

Thanks in advance.

Reddy
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Find the "active stage finishing" entry in the log - this contains all the link row counts. Otherwise use DSGetLinkInfo() function in the DataStage API in your own routine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Download EtlStats from my tips page.
Mamu Kim
sb_akarmarkar
Participant
Posts: 232
Joined: Fri Sep 30, 2005 4:52 am
Contact:

Post by sb_akarmarkar »

Use DSGetJobInfo() also....

Thanks,
Anupam
Sreenivasulu
Premium Member
Premium Member
Posts: 892
Joined: Thu Oct 16, 2003 5:18 am

Post by Sreenivasulu »

Hi reddy,

If you have Asential Meta Stage you can use it to get detailed information about the count, records,jobname etc...

Regards
Sreeni
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Sir,

Suppose if i use DSGETJOBINFO() in the jobcontrol of a jobs and i am using jobsequencer how can i get link counts for all jobs.

Thanks
Reddy
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

You need to have a pre-process and post-process either at each job level that gives you the row count.

Or you can call the Pre and Post process jobs through your sequencer.

Suggested design

Master Control Sequence
|

Job1Seq(Pre - Job1 - Post)
Job2Seq(Pre - Job2 - Post)
Job3Seq(Pre - Job3 - Post)
.....

The Pre and Post are jobs that do the count by calling the APIs.
Job1, Job2 and Job3 are your main jobs to be run.

Job1Seq .. are the sequencers.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
reddy
Premium Member
Premium Member
Posts: 168
Joined: Tue Dec 07, 2004 12:54 pm

Post by reddy »

Excellent Thanks a lot guys.
Post Reply