Page 1 of 1

DB2 table data load issue through DataStage(8.7) job

Posted: Fri Sep 12, 2014 8:09 am
by naveed.zuber
Please share your inputs on the issue.

INPUT: CSV file
SOURCE COLUMN A =V671U050117 (VARCHAR 50)
SOURCE COLUMN B=21 (VARCHAR 20)

OUTPUT Derivation:
TARGET COLUMN X (VARCHAR 256) =SOURCE COLUMN A : '_' : SOURCE COLUMN B

Expected OUTPUT:DB2 table
V671U050117_21
ACTUAL OUTPUT:
V671U050117?21

_ is loading as ? in target table

Posted: Fri Sep 12, 2014 8:16 am
by chulett
What are the charactersets involved?

Posted: Fri Sep 12, 2014 8:24 am
by naveed.zuber
Thanks Craig!
Characterset used in UNICODE.
Please let me know in case of further questions.

Posted: Fri Sep 12, 2014 9:14 am
by chulett
I meant for both the source and target... still the same answer?

Posted: Fri Sep 12, 2014 9:31 am
by qt_ky
I wonder if you may be missing a DB2 environment variable.

Did you query the table outside of DataStage to see what it looks like?

Posted: Fri Sep 12, 2014 9:32 am
by naveed.zuber
yes,both source and target are unicode characterset.

Posted: Sat Sep 13, 2014 2:13 am
by naveed.zuber
Thanks Eric.
Yes checked outside the DataStage environment also character looks '?'.