The input file is
339000|123456789|123456789012345678901234567899|
339000| 21| TEST|I
339000| 22| |A
339000|121212121|123456789012345678901234567890|B
When i run the BCP command its showing below error.But the
rows are copied in the DB.
Starting copy...
Unexpected EOF encountered in BCP data-file.
bcp copy in partially failed
4 rows copied.
od -c <file_name>
What you're looking for is confirmation that each line ends with a "\n", especially the last line.
The fact that all data is getting copied in before you get the error sounds like you may not have a "\n" at the end of the last line ... 'od -c' should be able to verify this.