Can column layouts be defined dynamically?

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
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Can column layouts be defined dynamically?

Post by dineshrk »

As per my requirement, both the input and output file layouts are dynamic
for example if 100 columns are there in the input and 50 columns are wanted in the output today,

Tomorrow there may be 120 columns in the input and 70 columns in the output.

Can we incorporate this in datastage?

**Note - subject changed to be more descriptive - Content Editor **
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Can do.

How do you intend to find which columns are required in output?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Get "them" to justify the requirement. As Sainath asked, WHICH columns will be required in the output on any particular run, and how are you expected to know that and to convey that information to the DataStage job? The RMM stage* has not yet been perfected.

* Read My Mind
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Post by dineshrk »

Sainath.Srinivasan wrote:Can do.

How do you intend to find which columns are required in output?

they will place the input file and the output file layout (i.e) the column names required that day in the same path
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

you can mention schema of the input/output file dynamically in a sequentail file stage
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

If there is no transformation, you can use schema files. But your requirement appears quite vague.

Why use datastage to just pick a few columns? I cannot see any step before or after this activity.
dineshrk
Participant
Posts: 46
Joined: Thu Jun 26, 2008 9:14 pm

Post by dineshrk »

Sainath.Srinivasan wrote:If there is no transformation, you can use schema files. But your requirement appears quite vague.

Why use datastage to just pick a few columns? I cannot see any step before or after this activity.

Actually there is no transformation. It is almost like filtering out few different columns everyday.
Sainath.Srinivasan
Participant
Posts: 3337
Joined: Mon Jan 17, 2005 4:49 am
Location: United Kingdom

Post by Sainath.Srinivasan »

Then why not control in the source itself ? Is it out of reach?

What is achieved by this extraction? i.e. what happens after this extraction?
betterthanever
Participant
Posts: 152
Joined: Tue Jan 13, 2009 8:59 am

Post by betterthanever »

Actually there is no transformation. It is almost like filtering out few different columns everyday.[/quote]

then you should be good mentioning the layout as schema file in both input/output..
Post Reply