separate values of a single column to 2 columns

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
srinivas.nettalam
Participant
Posts: 134
Joined: Tue Jun 15, 2010 2:10 am
Location: Bangalore

separate values of a single column to 2 columns

Post by srinivas.nettalam »

source data :
ColumnA
-----------
111
AAA
222
BBB
333
CCC

Output:
Col1 Col2
111 AAA
222 BBB
333 CCC


I assume we can achieve this with the design

Src-->Txfm (constraint alpha and num functions and generate dummy column with sequence numbers)----> numbers& alphabets------merge--->col1 col2

I am stuck in the sequence generating part because one row goes to 1 o/p and another row to other o/p hence there wouldn't be same dummy key values to merge..Please let me know on this
N.Srinivas
India.
DSguru2B
Charter Member
Charter Member
Posts: 6854
Joined: Wed Feb 09, 2005 3:44 pm
Location: Houston, TX

Post by DSguru2B »

What is the business rule for this? Is it to pivot strictly on two row increments or is it numeric fields in one column and alpha in second? What happens when its alpha numeric?
Creativity is allowing yourself to make mistakes. Art is knowing which ones to keep.
Post Reply