Files with varying columns

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
Shadab_Farooque
Participant
Posts: 21
Joined: Tue Apr 24, 2007 12:39 am

Files with varying columns

Post by Shadab_Farooque »

Hi,

I have a csv file which can have 60 to 105 columns .
Eg.one day it will have 60 columns,next day it will have 78 columns and so on.

How should i load this file into Oracle database

Regards
Shadab
Last edited by Shadab_Farooque on Mon Jul 14, 2008 4:47 pm, edited 1 time in total.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

When it magically has 78 columns the next day, are the first 60 the same as the previous day?
-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 »

Define 105 columns. Create "missing columns" rules in the table definition for the Sequential File 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.
Shadab_Farooque
Participant
Posts: 21
Joined: Tue Apr 24, 2007 12:39 am

Post by Shadab_Farooque »

Hi Ray,
Can you please let me know how to create "missing columns" rules
Shadab Farooque
Shadab_Farooque
Participant
Posts: 21
Joined: Tue Apr 24, 2007 12:39 am

Post by Shadab_Farooque »

chulett wrote:When it magically has 78 columns the next day, are the first 60 the same as the previous day? ...
Hi Chulett,

Yes, the first 60 columns are same as yesterdays
Shadab Farooque
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

check this post :
viewtopic.php?p=291072
keshav0307
Premium Member
Premium Member
Posts: 783
Joined: Mon Jan 16, 2006 10:17 pm
Location: Sydney, Australia

Post by keshav0307 »

missing columns action is available for server jobs only
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Not 100% sure whether that's true or not, but if it is you can put the Sequential File stage into a server Shared Container to make use of this particular functionality in a parallel job.

You might also investigate an approach using the Schema File property of the parallel Sequential File 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.
Post Reply