Hi,
Is there any way we can find Max date and Min date if records are continius and other records in a group need to be passed to target if not continious.
Source File:
Key4|2011-01-01|2011-12-31
Key1|2013-01-01|2013-12-31
Key2|2010-01-01|2012-05-25
Key3|2010-01-01|2010-12-31
Key4|2010-01-01|2010-12-31
Key1|2009-01-01|2010-12-31
Key3|2011-01-01|2012-12-31
Key2|2014-01-01|2018-12-31
Key1|2014-01-01|2020-12-31
Key2|2011-01-01|2013-12-31
Key4|2012-01-01|2013-05-25
Key3|2012-01-01|2013-05-25
Key4|2012-01-01|2018-12-31
Key2|2025-01-01|2026-05-25
Key3|2012-01-01|2018-12-31
Target File:
Key1|2009-01-01|2010-12-31
Key1|2013-01-01|2020-12-31
Key2|2010-01-01|2018-12-31
Key2|2025-01-01|2026-05-25
Key3|2010-01-01|2018-12-31
Key4|2010-01-01|2018-12-31
Regards,
Vinod
Working on Group of records
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Welcome aboard.
Use Sort and Aggregator stages if you want to do this in DataStage.
Use Transformer stage to detect discontinuities and direct the flow of data appropriately to your needs.
Use Sort and Aggregator stages if you want to do this in DataStage.
Use Transformer stage to detect discontinuities and direct the flow of data appropriately to your needs.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.