Record count

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
srinivas143
Participant
Posts: 30
Joined: Tue Feb 19, 2008 11:02 pm

Record count

Post by srinivas143 »

Hi All,

I want to extract the record count of the data loaded into the target.

Some body can help me how to get the info by using a routine..some thing like as below.

pJobStatus = DSGetJobInfo (DSJ.ME,DSJ.JOBINTERIMSTATUS)

Could you pls help me.

Kind Regards
Minhajuddin
Participant
Posts: 467
Joined: Tue Mar 20, 2007 6:36 am
Location: Chennai
Contact:

Post by Minhajuddin »

This can be easily accomplished by writing a basic routine which counts the number of records on a *link* attached to a *stage* in a particular *job*.
However, keep in mind that it is best to run this routine after the job which does the loading. As for the routine you can find plenty of them on this site just do a search for DSGetLinkInfo.
Minhajuddin

<a href="http://feeds.feedburner.com/~r/MyExperi ... ~6/2"><img src="http://feeds.feedburner.com/MyExperienc ... lrow.3.gif" alt="My experiences with this DLROW" border="0"></a>
srinivas143
Participant
Posts: 30
Joined: Tue Feb 19, 2008 11:02 pm

Post by srinivas143 »

Hi

Any sample code for this??


Kind Regards
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Code? There certainly are usage examples of the DSGetLinkInfo function in the online help.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Or use search to look for example DSGetLinkInfo in DSXchange.
srinivas143
Participant
Posts: 30
Joined: Tue Feb 19, 2008 11:02 pm

Post by srinivas143 »

Thank you ...I will look into those...
Post Reply