Error in Reading ASCII 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
vibwipro
Participant
Posts: 40
Joined: Thu Jan 24, 2013 7:34 am

Error in Reading ASCII file

Post by vibwipro »

Hello,

I am getting error in reading .csv file through a schema file.

Schema file is :-

record{record_delim_string='\r\n', delim=',', final_delim=end, quote=double}
(
BRANCH_ID:String[10];
CLIENT_ID:String[10];
NOTES:String[200];
PIN_DEVICE:String[3];
CP_ROUTE_NO:String[4];
)


Error :-

Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 0.
Copy_of_SYS,0: Import unsuccessful at record 0.
Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 1.
Copy_of_SYS,0: Import unsuccessful at record 1.
Copy_of_SYS,0: Input buffer overrun at field "NOTES", at offset: 292
Copy_of_SYS,0: Import warning at record 2.

so on.

Can any one plz help m eon this.
Mike
Premium Member
Premium Member
Posts: 1021
Joined: Sun Mar 03, 2002 6:01 pm
Location: Tampa, FL

Post by Mike »

Your schema file does not describe your data file contents. You've defined all fixed-width strings. Are you sure you want to do that for a delimited file?

Mike
vibwipro
Participant
Posts: 40
Joined: Thu Jan 24, 2013 7:34 am

Post by vibwipro »

Thx Mike,

Could you please make changes as past back schema file.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Or here's a crazy thought - you could do it. Add "max=" before the size.
-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 might also like to check whether the file genuinely has DOS-style line terminators, as mentioned in the schema file.
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