I want to get an output as how many records has populated fr

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
4friends
Participant
Posts: 71
Joined: Tue May 01, 2007 12:51 pm
Location: Mumbai

I want to get an output as how many records has populated fr

Post by 4friends »

Hi All,

I want to get an output as how many records has populated from source to target in a file?????? :?: :?: :?:

Thanks in advance :!: :!: :!:
thanks & regards
kk
Maveric
Participant
Posts: 388
Joined: Tue Mar 13, 2007 1:28 am

Post by Maveric »

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

Post by ray.wurlod »

Create another link in your job using a Copy stage. Add a Column Generator to generate 1 for every row. Add an Aggregator to total these 1's. Write the result to your file.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Post by AmeyJoshi14 »

Hey ! you can use
dsjob -lstages PRJCT_NAME Jobname
This will give all the stages in that particular job.
Now use the following comman:
dsjob -stageinfo PRJCT_NAME Jobname Src_stage_name > some.txt

From these grep for In Rows and you will get the source row count.
Same thing for the target. :P

dsjob -stageinfo PRJCT_NAME Jobname Tgt_stage_name >> some.txt
Post Reply