Reading a fixed widtjh file

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
vimali balakrishnan
Participant
Posts: 60
Joined: Mon Dec 27, 2004 3:38 am

Reading a fixed widtjh file

Post by vimali balakrishnan »

I am trying to read from a fixed width file, The file has fixed length record with 500 fields. I am reading only 50 fields out of it by giving the appropriate start positions. The record length is 3300 characters.

I'm reading all fields as Char. When i execute the job, it gives me the following warning message,

Src_ACPSExtract,0: Import consumed only 58bytes of the
record's 3300 bytes (no further warnings will be generated
from this partition)

Src_ACPSExtract,0: Import
warning at record 0.

Could you please some solution which could resolve this?

Thanks
GJ_Stage
Participant
Posts: 131
Joined: Mon Oct 27, 2008 6:59 am

Post by GJ_Stage »

Could you please check this file length is 3300.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

AFAIK, you need to 'read' all columns, even the ones you don't 'need'. And make sure their 'Display' size is correct in the stage as that is what drives how many bytes it reads per record.
-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 »

You do have to read all fields, but there is a useful property called "Drop On Import" that you can use to prevent needing to process unwanted fields in your job design.
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