Pivot Stage

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
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

Pivot Stage

Post by rhaddur »

I am doing pivoting

input 3 columns
col_1,col_2,col_3
1 0 2


Output ( 2 column s
Pivote

col1 , col2
1,0,
1,2

I am getting Output
1,0
1,2
1,
i.e one extra recrod with blank col 2 generated , is this expected
Rhaddur
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Yes. Filter any 'empty' records post-pivot.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rhaddur
Participant
Posts: 52
Joined: Mon Mar 13, 2006 7:33 am
Location: mumbai

Post by rhaddur »

chulett wrote:Yes. Filter any 'empty' records post-pivot. ...
Can I know the root cause why we found one extra record
Rhaddur
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

What does your source actually (physically) look like? Is there, for example, a final delimiter or an empty line following the data line?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply