Pass parameter value as column name

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
hitmanthesilentassasin
Participant
Posts: 150
Joined: Tue Mar 13, 2007 1:17 am

Pass parameter value as column name

Post by hitmanthesilentassasin »

Hi,

Is it possible to pass a parameter instead of a column name so that the column value will be passed.

In transformer i need to map the columns dynamically. the column names will be passed as the job parameter and they could change when needed.

what could be alternative for this?

Thanks,
Hitman
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Welcome aboard.

In DataStage the metadata drives the data, not the other way around. What you seek to do is not really possible.

Some people have experimented with using the Schema File property, and attempted to use a dynamic record schema, relying upon runtime column propagation to achieve pass-through of "all other columns", with varying degrees of success.
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