I have the following input :
sr_no
1
2
3
I would like my output to become like this :
sr_no1 sr_no2 sr_no3
1 2 3
How shd I do that. Is it with Pivot ? I tried to use Pivot stage like this :
Row Generator -> Pivot -> Data set
Row generator is geneating those 3 rows.Then my output file was defined with 3 columns.But the jobs runs but I see no data in output.
Please help.
Problem with Pivot stage
Moderators: chulett, rschirm, roy
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
A Pivot stage goes the other way (columns to rows). What you are attempting to achieve is called a "vertical pivot" (rows to columns). There are several ways to achieve a vertical pivot in DataStage - a Search of DSXchange will reveal them.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
-
- Participant
- Posts: 54607
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact: