Pivot stage Group column. what is it for?

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
crogerson@dbworks-tech.co
Charter Member
Charter Member
Posts: 2
Joined: Thu Mar 10, 2005 1:56 pm

Pivot stage Group column. what is it for?

Post by crogerson@dbworks-tech.co »

Greetings,

I have to modify an existing server job that does a horizontal pivot (columns to rows) using a pivot stage. I haven't needed to use this stage much in the past and I wanted someone to explain one of the parameters that can be set. The parameter is called 'group' and it is a column that can be set to Yes for one or more columns of the output side of a pivot.

I have read the pivot.pdf and it doesn't even show this column?? (The only context help shows it, but doesn't say anything about it) I see the key column and I assume that is the column that determines which columns are constant.

So...can someone please answer these:

1) What is the group column used for? when should it be used?

2) Is the 'Key' column the actual determiner of which columns are constant in the pivot output?

Thanks a bunch everyone!
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Re: Pivot stage Group column. what is it for?

Post by chulett »

Greetings! And welcome. :D

1) What is the group column used for? when should it be used?

One of the wonders of using a common 'widget' - not all columns are used in all circumstances. In this particular stage, that column has no function.

2) Is the 'Key' column the actual determiner of which columns are constant in the pivot output?

Yup.
-craig

"You can never have too many knives" -- Logan Nine Fingers
crogerson@dbworks-tech.co
Charter Member
Charter Member
Posts: 2
Joined: Thu Mar 10, 2005 1:56 pm

Post by crogerson@dbworks-tech.co »

Thanks for the update.

I couldn't see any use for it, but the pivot.pdf manual shows it in a screen shot but never mentions that it has no function.

cheers
Post Reply