What is the use of pivot stage?

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
SHARAD123
Premium Member
Premium Member
Posts: 54
Joined: Wed Jan 09, 2008 12:05 am

What is the use of pivot stage?

Post by SHARAD123 »

Pivot stage is used in what conditions?
Could someone help me out!!!!
222102
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

When you need to 'pivot' columns out into multiple rows. You can help you out - read the online help available from the 'Help' button inside the stage for specifics.
-craig

"You can never have too many knives" -- Logan Nine Fingers
rleishman
Premium Member
Premium Member
Posts: 252
Joined: Mon Sep 19, 2005 10:28 pm
Location: Melbourne, Australia
Contact:

Post by rleishman »

To convert 1 input row into 2 or more output rows. For example, you could pivot a row that contained:

Code: Select all

Department, Year, Sales_Jan, Sales_Feb, Sales_Mar, ...
into

Code: Select all

Department, Year, Month, Sales
In this example the output would contain 12 rows for every input row.
Ross Leishman
sachin1
Participant
Posts: 325
Joined: Wed May 30, 2007 7:42 am
Location: india

Post by sachin1 »

Pivot is an active stage that maps sets of columns in an input table to a single
column in an output table.

hope you have a pdf named "pivot.pdf" deployed with your Datastage software, that can help you know more.
Post Reply