Separately Group Rows then Re-group them in Exact Order
Posted: Thu May 21, 2015 12:56 am
Hi guys, I am new to Datastage and I encountered a problem that's maybe a simple one.
I have a flat file source that looks like the one below:
Type 1|XXX|XXX|1234
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|567
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|1234
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|8911
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
* Type 1~6 Rows is refers to 1 instance/project.
BUT the only traceability of the project is only located at Type 1's
* So my problem is, if I separate all rows, I will not know from which project does each OTHER TYPEs belong to.
*I want to perform a transformation on Type 1 that's why I want to separate them. But there will be a bigger problem when doing so. That's why I'm thinking if there's a way that I can separate each project and group them so that the OTHER TYPES wo'nt get lost.
Hoping for the help.
Thank you,
-Kit
I have a flat file source that looks like the one below:
Type 1|XXX|XXX|1234
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|567
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|1234
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
Type 1|XXX|XXX|8911
Type 2|X|XXXXXXXXX|2015-02-01
Type 3|XXXX|XXXXXXX|2015-02-01
Type 4|XXXXXXX|XX
Type 6|X|XXX|X|XX
* Type 1~6 Rows is refers to 1 instance/project.
BUT the only traceability of the project is only located at Type 1's
* So my problem is, if I separate all rows, I will not know from which project does each OTHER TYPEs belong to.
*I want to perform a transformation on Type 1 that's why I want to separate them. But there will be a bigger problem when doing so. That's why I'm thinking if there's a way that I can separate each project and group them so that the OTHER TYPES wo'nt get lost.
Hoping for the help.
Thank you,
-Kit