Search found 4 matches

by varunndschange
Sun Sep 19, 2010 3:32 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Reading multiple files with header
Replies: 8
Views: 4200

You are reading multiple files from file pattern. Consider, if fields f1, f2, f3 and so on are there in files. Now go to filter stage and there set the condition as: f1<>'f1'. This way only file records will be passed, not the column names. E.g. file1: f1, f2, f3 1, 1, 1 2, 2, 2 file2: f1, f2, f3 3,...
by varunndschange
Sun Sep 12, 2010 11:06 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: even records one target,odd number records one target
Replies: 9
Views: 7601

If you want it to achieve without transformer ... First perform hash partitioning on deptno and sal and then you can use a row generator and generate rows for a new dummy column with initial value as 1 and increment by 1.. This way each row is assigned a unique value.. Now use filter stage and filte...
by varunndschange
Sun Sep 12, 2010 8:03 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Strange Duplicate scenario
Replies: 14
Views: 6202

Solution by using transformer stage

1. Use sort stage, apply hash partitioning on the key value and perform sort on main key and start date. 2. Use transformer stage and create two stage variables svPrevkey and svCurrkey as: svPrevkey(with its initial value set to -1)=svCurrkey svCurrkey=key Again create two new stage variables svPrev...
by varunndschange
Fri Sep 10, 2010 2:52 am
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Create C++ routines in windows
Replies: 6
Views: 4958

thanks for your detailed sincere explanation and patience, it is really useful :D