Carry forward rows that do not match in Hashed file

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

dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

kumar_s wrote:Ok, paste the exact constrain that you have mentioned in Transformer. ...


NOT(DSLink11.NOTFOUND)
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

kumar_s wrote:Ok, paste the exact constrain that you have mentioned in Transformer. ...

(DSLink11.NOTFOUND) This is the consrtaint.

DSLink11 - look up link
DSLink10- main input
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

Please ignpre the below post.The previous on eis the right one.
dsusersaj wrote:
kumar_s wrote:Ok, paste the exact constrain that you have mentioned in Transformer. ...


NOT(DSLink11.NOTFOUND)
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Not of NotFound = Found. Use just DSLink11.NOTFOUND.
Wondering, how did it match the first time if the Hashed file is empty.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

I am sorry i did give dslink11.notfound.
I pasted the wrong this first.
kumar_s wrote:Not of NotFound = Found. Use just DSLink11.NOTFOUND.
Wondering, how did it match the first time if the Hashed file is empty. ...
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

One more info. From DSLink11 I am not taking any value. This is just for look up.if the look up does not match, just forward all the values from Dslink10. This is waht I want to do.
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

To avoid any confusion. ..
The constraint in my job is DSLink11.NOTFOUND.
Still the rows doesnot pass the transformer. The table doesnt have them now.

dsusersaj wrote:I am sorry i did give dslink11.notfound.
I pasted the wrong this first.
kumar_s wrote:Not of NotFound = Found. Use just DSLink11.NOTFOUND.
Wondering, how did it match the first time if the Hashed file is empty. ...
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

Knock Knock!!
dsusersaj wrote:To avoid any confusion. ..
The constraint in my job is DSLink11.NOTFOUND.
Still the rows doesnot pass the transformer. The table doesnt have them now.

dsusersaj wrote:I am sorry i did give dslink11.notfound.
I pasted the wrong this first.
kumar_s wrote:Not of NotFound = Found. Use just DSLink11.NOTFOUND.
Wondering, how did it match the first time if the Hashed file is empty. ...
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

The problem is resolved. I just directed the look up table's data to a hashed file. I was thinking table as reference would work the same way as hashed file. But it was not though.

With hashed file , isnull works..

Thanks all.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Good that you resolved it. Table in reference link should work same as Hashed file in this matter. May be other changes in the jobs should be noted down.
Not sure what is DSLink11. If you are checking for Null, check for the column which will be populated with Null when not found.
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 »

I'm curious why everything (subject, first post, etc) states you were having a problem with a hashed file lookup and now suddenly it works if you use a hashed file? :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

I was also thinking the same that hashed file would work the same way as table. This strong belief made me post the way I did. Referencing table as hashed file.But in the later post I clarified it as table I believe.
kumar_s wrote:Good that you resolved it. Table in reference link should work same as Hashed file in this matter. May be other changes in the jobs should be noted down.
Not sure what is DSLink11. If you are check ...
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Umm, no. All you managed to accomplish by not stating your problem accurately was cause two pages of thrashing to occur when it could have been solved in one or two responses had you correctly described what you were doing.

Please keep that in mind in the future. The more information and the more pertinent details we have, the better we can help you solve your issue.
-craig

"You can never have too many knives" -- Logan Nine Fingers
dsusersaj
Premium Member
Premium Member
Posts: 160
Joined: Mon Dec 17, 2007 10:44 am

Post by dsusersaj »

Hmm.Get that. Thanks all.

chulett wrote:Umm, no. All you managed to accomplish by not stating your problem accurately was cause two pages of thrashing to occur when it could have been solved in one or two responses had you correctly described what you were doing.

Please keep that in mind in the future. The more information and the more pertinent details we have, the better we can help you solve your issue.
Post Reply