Search found 2 matches

by vcamsgc
Tue Jun 16, 2009 12:45 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows into Columns
Replies: 3
Views: 1321

Welcome aboard. This is most easily accomplished, once data have been sorted by the key, in a Transformer stage using stage variables to detect whether a non-null value has already been processed for the current key. As many rows are output as are input, into a Remove Duplicates stage that allows o...
by vcamsgc
Mon Jun 15, 2009 6:15 pm
Forum: IBM<sup>®</sup> DataStage Enterprise Edition (Formerly Parallel Extender/PX)
Topic: Rows into Columns
Replies: 3
Views: 1321

Rows into Columns

For Every unique key column value, i need to get the 1st NotNull values of every column based upon the source priority. SOURCE File: Key Source Col1 Col2 2000 A NULL DEF 2000 B NULL NULL 2000 C XYZ NULL 2001 A PQR NULL 2001 C NULL RXB 2001 D OIO ABC 2002 A NULL NULL 2002 B IOP NULL 2002 C NULL NULL ...