DB2 Import

I have csv file containing international text as below

When I ftp it to db server for upload purpose, i see some junk character on the server as:


I tried using iconv -f ISO8859-9 -t UTF-8 test/sample_cat_master.csv > test/sample_cat_master_test.csv
But do not get result. I still see the junk char.

Import from that file gives following msg:
SQL3110N  The utility has completed processing.  "0" rows were read from the
input file.

SQL3221W  ...Begin COMMIT WORK. Input Record Count = "0".

SQL3222W  ...COMMIT of any database changes was successful.

SQL3149N  "0" rows were processed from the input file.  "0" rows were
successfully inserted into the table.  "0" rows were rejected.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

Kent OlsenDBACommented:
Hi beetri,

The FTP process shouldn't alter anything in the file, with the possible exception of the line terminator.  If you select a BINARY transfer, the file is bit-for-bit accurate.  If the transfer is cross platform (unix to Windows, etc.) the line terminator may be wrong, but you can still try it.  If you select a TEXT transfer, FTP will ensure that the line terminator is correct for the local system.  FTP does NOT know anything about the data so if there's an embedded newline character, even in quotes, the newline will be converted to the local line terminator.


Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
i see some junk character on the server as:...

What are you using to "see" the junk characters? What platform is the file stored on?

It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.