DSXchange: DataStage and IBM Websphere Data Integration Forum
View next topic
View previous topic
Add To Favorites
Author Message
sainath



Group memberships:
Premium Members

Joined: 19 Nov 2004
Posts: 137

Points: 1243

Post Posted: Thu Mar 21, 2019 10:18 am Reply with quote    Back to top    

DataStage® Release: 11x
Job Type: Parallel
OS: Unix
Hi
I have input data with n fields

I have requirement that if there is change in input
Data then recordupdate date = current date else recordupdatedate

What is best approach. I thought of using funnel stage and compare string in transformer. Let me know any other better approach

Thks
chulett

Premium Poster


since January 2006

Group memberships:
Premium Members, Inner Circle, Server to Parallel Transition Group

Joined: 12 Nov 2002
Posts: 43011
Location: Denver, CO
Points: 221947

Post Posted: Thu Mar 21, 2019 11:37 am Reply with quote    Back to top    

I honestly have no idea what your requirements are here. Rather than guess, would it be possible to post some examples of the input data and then examples of what the output data should look like after the application of your... logic?

_________________
-craig

Space Available
Rate this response:  
Not yet rated
sainath



Group memberships:
Premium Members

Joined: 19 Nov 2004
Posts: 137

Points: 1243

Post Posted: Thu Mar 21, 2019 12:55 pm Reply with quote    Back to top    

Hi

Sorry for not clear in requirements

1) if before Data set data is equal to After dataset then Record_update_date=currenttimestamp ----day 1
2) if before Data set data is equal to After dataset then Record_update_date=same timestamp as day 1 ----day 2
3) if before Data set data is not equal to After dataset means some change in data then Record_update_date=currenttimestamp ---day 3
3) if before Data set data is equal to After dataset means no change in data then Record_update_date=sametimestamp (day 3) --
and soo on

what is the best stage .

if I use CDC stage then all the after records are populated to changed dataset.if the change code -3 or 1 then how can I apply logic for record_update_date.

please let me know
Rate this response:  
Not yet rated
ray.wurlod

Premium Poster
Participant

Group memberships:
Premium Members, Inner Circle, Australia Usergroup, Server to Parallel Transition Group

Joined: 23 Oct 2002
Posts: 54535
Location: Sydney, Australia
Points: 295717

Post Posted: Mon Mar 25, 2019 5:47 pm Reply with quote    Back to top    

Try using a Change Capture stage. Test the change_code downstream in a Transformer stage and derive the output accordingly.

_________________
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Rate this response:  
Not yet rated
Display posts from previous:       

Add To Favorites
View next topic
View previous topic
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum



Powered by phpBB © 2001, 2002 phpBB Group
Theme & Graphics by Daz :: Portal by Smartor
All times are GMT - 6 Hours