Error in reading Sequential 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
datasis
Participant
Posts: 10
Joined: Wed Aug 27, 2008 1:05 am

Error in reading Sequential file

Post by datasis »

Try to read a simple sequential file,Getting Warning message in director

Sequential_File_3,0: Missing record delimiter "\n", saw EOF instead
Sequential_File_3,0: Import warning at record 5

what delimiter should i use in final delimiter, i have used end and also none,but getting the same error meaasge

File structure is like

EMPNO,ENAME,SALARY
1,AAA,3443
2,BBB,4543
3,AAA,2243
4,DDD,2243
5,EEE,5673
6,DDD,7873
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

How many records are in your file?
-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 »

This message usually means that the final record in the file is missing its record delimiter. The reader has found the end-of-file marker.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
datasis
Participant
Posts: 10
Joined: Wed Aug 27, 2008 1:05 am

Post by datasis »

This file has only 10 records in it
satish.raghavan
Participant
Posts: 22
Joined: Tue Jul 21, 2009 4:45 am
Location: Chennai
Contact:

Post by satish.raghavan »

Try to declare the final delimiter as none and record length as fixed width and then execute it. even if you declare only the final delimiter as none it may work.
Thanks & regards

Satish R
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Setting it to 'fixed width' for a csv file makes no sense, unfortunately. And neither does it hitting EOF after reading 5 records when there's allegedly 10. We're missing something here. :?
-craig

"You can never have too many knives" -- Logan Nine Fingers
bachi
Participant
Posts: 28
Joined: Sun May 25, 2008 7:02 am

Post by bachi »

Try to read the file as varchar then change accordingly as the metadata.u can avoid that warings
Kryt0n
Participant
Posts: 584
Joined: Wed Jun 22, 2005 7:28 pm

Post by Kryt0n »

Post a hex dump of lines 5 and 6 (to see if there are any hidden characters)
Post Reply