RCP option not available in 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
ethelvina
Participant
Posts: 17
Joined: Sun Mar 30, 2008 10:05 pm

RCP option not available in Pivot stage

Post by ethelvina »

RCP option is not available in pivot stage and I am not sure of the no of columns I have to pivot, In pivot stage I had passed the column names(the one I am going to pivot) as parameters, but as RCP is not available for pivot, I get the error as could not find the input column to pivot,when I define the metadata in pivot stage the job is working fine.Is there any way to pivot(horizontal) the columns dynamically.Please help
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

No. Define the maximum possible and then filter out the empty ones post-pivot.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Have you checked the PXPivot stage? (as opposed to the Pivot stage)
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ethelvina
Participant
Posts: 17
Joined: Sun Mar 30, 2008 10:05 pm

Post by ethelvina »

Ya I have checked the PXPivot stage,even this stage is not having RCP option.
My requirement is like
e.g.

Key_A Col_A Col_B...................Col_N
100 fgh abc...................... xyz
Then I should get the output as
Key_A ColumnNames ColumnValues
100 Col_A fgh
100 Col_B abc
.....
.....
.....
100 Col_N xyz

Here I am not sure how many no of columns I will have,Is there any way to implement this without using pivot stage.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you prepared to use a Server job? It's easy there.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ethelvina
Participant
Posts: 17
Joined: Sun Mar 30, 2008 10:05 pm

Post by ethelvina »

No I have to use Parallel job only.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Why?

Would you use a hammer to fasten a nut and bolt?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
ethelvina
Participant
Posts: 17
Joined: Sun Mar 30, 2008 10:05 pm

Post by ethelvina »

Actually my requirement was to do develop a parallel job,how can we implement this using server job?Can you please help me on this?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Accumulate the non-key columns into a value mark (@VM) delimited string and write to a hashed file where that is keyed by the grouping key and that column is defined as multi-valued in the metadata. Then read from the hashed file normalizing on the multi-valued field.
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