row count

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
suresh_dsx
Participant
Posts: 160
Joined: Tue May 02, 2006 7:49 am

row count

Post by suresh_dsx »

Hi guys,
i need to find a row count when i insert or update the records.
my job is like this
oracle stage--> tranformer-->seq file1
|
seq file2
Whenever i run the job need to find the no of records(row count) ,count those records and place in the seq file2.can any one give the solution for this
Kirtikumar
Participant
Posts: 437
Joined: Fri Oct 15, 2004 6:13 am
Location: Pune, India

Post by Kirtikumar »

Have you searched the form before posting this?

If not try it. I guess in so many posts, capturing the row count has been discussed.
Regards,
S. Kirtikumar.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If you want to calculate the ouput record to seq file1 or seq file2, use @OUTROWNUM. If you want to get the count on total record that extracted by oracle stage, use @INROWNUM.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Another option is to use DSGetLinkInfo, either 'after job' or downstream in a Sequence job. Or another link in the current job with the same constraint as the one to seq file2, running into an Aggregator.
-craig

"You can never have too many knives" -- Logan Nine Fingers
battaliou
Participant
Posts: 155
Joined: Mon Feb 24, 2003 7:28 am
Location: London
Contact:

Post by battaliou »

Use an aggregator
3NF: Every non-key attribute must provide a fact about the key, the whole key, and nothing but the key. So help me Codd.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

battaliou wrote:Use an aggregator
As mentioned by Craig.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
Post Reply