Hi,
I would like to know how the null columns has been handled while comparing in a change capture stage. I did a search on related topics which I couldn't get the information I was looking for and hence creating a new topic. I understand that from DataStage version 8.5 explicit handling eg: NullToValue() need not be handled. The scenario I have is two tables for which change capture to be made (Two columns in scope for change capture a nullable numeric and a nullable varchar field and a key field). When we don't do a explicit handle of null in transformer before the change capture on both links will it still the resultant output be a edit record or a copy record (for a record with values NULL in both columns)?
Null Handling for Change capture
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 15
- Joined: Thu Jul 06, 2006 8:59 am
Null Handling for Change capture
Balaji.
-
- Participant
- Posts: 15
- Joined: Thu Jul 06, 2006 8:59 am
I tried that option as well now and i see when two null records (with null value of varchar and numeric fields) are compared against its corresponding before result using change capture , the result is a copy record (without any explicit null handling in transformer). I have come across few topics in forum that null should be handled to avoid an update/edit and hence raised this topic however not sure how a transformer handles the nullability in built
Balaji.
-
- Premium Member
- Posts: 536
- Joined: Thu Oct 11, 2007 1:48 am
- Location: Bangalore
If the column type is nullable =Yes then datastage will put null so I don't think there is an issue in comparing two input links.
Thanks
Prasoon
ETL Consultant
LinkedIn :- http://www.linkedin.com/profile/view?id ... ab_pro_top
Blog:- http://dsshar.blogspot.com/
Prasoon
ETL Consultant
LinkedIn :- http://www.linkedin.com/profile/view?id ... ab_pro_top
Blog:- http://dsshar.blogspot.com/
-
- Participant
- Posts: 9
- Joined: Fri Feb 18, 2011 1:12 am
- Location: Hyderabad
Re: Null Handling for Change capture
Hi,
I have had the similar situation and as far as i know, nulls on both sides will be treated as same and won't see that as a edit record.
May be internally it will assign some value to null and compare that value #thought.
Thanks,
Naresh K
I have had the similar situation and as far as i know, nulls on both sides will be treated as same and won't see that as a edit record.
May be internally it will assign some value to null and compare that value #thought.
Thanks,
Naresh K
Naresh
ETL Developer
ETL Developer