@INROWNUM

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
Durga
Participant
Posts: 31
Joined: Mon Apr 16, 2007 12:04 pm

@INROWNUM

Post by Durga »

Hi ,

I am new to datstage server.I have one question on @INROWNUM

in one of our existing jobs, the derivation in transformer is like this

COLUMN1 -If @INROWNUM = 1 Then "XYZ" else 'do something else here'

here my question is ,

first time when I ran the job I saw the first record with the value 'XYZ' for the column ' COLUMN1' for remaining 9 records it had someother values.
when I ran the second time, I don'see any record with the value 'XYZ'

Can you please explain me the reason


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

Post by DSguru2B »

You should get 'XYZ' everytime for the first incoming record. Change your output to a sequential file. If you have a hashed file then you might be overwriting it due to identical keys.
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
nick.bond
Charter Member
Charter Member
Posts: 230
Joined: Thu Jan 15, 2004 12:00 pm
Location: London

Post by nick.bond »

add another column with the derivation of @INROWNUM. This may help you see what is happening.

Is this a Server job or EE job? You have said it is server but posted in the EE forum.
Regards,

Nick.
Post Reply