Page 1 of 1

Sequential file Read

Posted: Thu May 10, 2012 8:46 am
by edison
Input

0001
0002
0003
0001,0002
0005
0003,0004

Source is sequential file and Pipe delimiter, how can we read source data if it like 0001,0002 in 1 line.

When i read source file it is unable to read after comma.It is reading all 6 lines data but not after comma data.

Posted: Thu May 10, 2012 9:13 am
by chulett
So... when you say "in one line" you actually mean "in one column", yes? And are you certain you set the delimiter to a pipe in the stage? I'd also be curious what the data type of this column is...

Posted: Thu May 10, 2012 9:36 am
by edison
Datatype is Varchar(10), yes i mean one column.

Posted: Thu May 10, 2012 9:46 am
by chulett
And the pipe delimiter? I'm not sure off the top of my head why you'd be seeing the behaviour you are describing unless the delimiter was set to a comma in the stage. :?

Posted: Thu May 10, 2012 9:53 am
by edison
Thanks Craig, you are right i set delimiter to comma instead of pipe.

Posted: Thu May 10, 2012 10:27 am
by chulett
So, resolved?