Jobs contain lesser fields than defined in metadata

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
rumu
Participant
Posts: 286
Joined: Mon Jun 06, 2005 4:07 am

Jobs contain lesser fields than defined in metadata

Post by rumu »

Hi All,
I am new to Px.I am facing the following problem:
In metadata tehre is 12 fields.In source it is sometimes comimg 11 or 12.When the no of col is 11 then the job is failing.
we r using sequential file stage to read data.
Like ServerJobs is there ny property to set "Missing columns action"?

Pls suggest.

Thanks in advance.

Regards,

rumu
thebird
Participant
Posts: 254
Joined: Thu Jan 06, 2005 12:11 am
Location: India
Contact:

Re: Jobs contain lesser fields than defined in metadata

Post by thebird »

rumu wrote: Like ServerJobs is there ny property to set "Missing columns action"?
rumu
You can set the Reject Mode option inside the Sequential File stage to "Output" to capture all records that have a mismatch in the defined metadata, in a reject link.

If you set this property to "Continue" then the job will simply discard such records and finish to completion.

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

Post by ray.wurlod »

There is no "missing columns action" in 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.
rumu
Participant
Posts: 286
Joined: Mon Jun 06, 2005 4:07 am

Post by rumu »

ray.wurlod wrote:There is no "missing columns action" in parallel Sequential File stage. ...
Hi Ray,
I have to pass all records whether the column is present or not.
Pls suggest how to achievs that?

Regards,

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

Post by ray.wurlod »

Capture the short rows in the reject link as a raw string. Run this through a Column Import stage to parse it into the eleven columns, then through a Column Generator stage to add the twelfth column. Bring both streams together using a Funnel 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.
vmcburney
Participant
Posts: 3593
Joined: Thu Jan 23, 2003 5:25 pm
Location: Australia, Melbourne
Contact:

Post by vmcburney »

You could also import it as 11 columns and split the 11th and 12th columns in a transformer stage. Not completely sure if this will work!
Post Reply