Regarding Loading chinese characters

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

The "view data" functionality should not be used for viewing NLS data as it seldom does that correctly. I am fairly certain that your textfile data is not UTF-8; once you tell DataStage what the correct text file NLS mapping is, it will correctly convert to UTF-8.
manojbh31
Premium Member
Premium Member
Posts: 83
Joined: Thu Jun 21, 2007 6:41 am

Post by manojbh31 »

Hi

The feed file which i am getting is UTF-8 only. when i open the file and do save as and check the encoding it is showing UTF 8.
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

If the source stage is set to UTF-8 then DataStage is reading the data correctly (despite the view-data output). What are your enviroment settings for DB2 and which DB2 stage are you using to write?
manojbh31
Premium Member
Premium Member
Posts: 83
Joined: Thu Jun 21, 2007 6:41 am

Post by manojbh31 »

DB2 Stage is DB2_UDB_Enterprise_15

Database code set = UTF-8

Do i need to change any setting in DS to view the data correctly
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

You cannot use the "view data" in DataStage to correctly view multibyte data, unfortunately.
Is your DB2 instance and/or table also set up to use UTF-8?
manojbh31
Premium Member
Premium Member
Posts: 83
Joined: Thu Jun 21, 2007 6:41 am

Post by manojbh31 »

Hi,

I am able to load the data into DB2 table using ODBC Enterprise stage. and able to view the data in DB2 table as it looks in source. Can any body let me know why its so. Why cannot i see the correct data when i use DB2 Stage
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Because View Data does not work properly with multibyte characters.

It is NOT a fault of the stage.
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