Hi ALL.. Im nab at japan.
I have a question.
Im using Informatica PowerCenter7.1.2.
I want to convert from my textfile to flat file as CSV using "SUBSTR" function with multibyte.
for example ## XXX is multibyte chara(Shift_JIS)
--------my txt file-----
No | country | name |desc
1|japan|nab matsui|XX6X132-6
2|USA|ichiro suzuki|XX88X54-44
-----------result------------
No,country,name,desc
1,"japan","nab matsui","XX6X1" <- 8byte
2,"USA","ichiro suzuki","XX88X" <- 8byte
so..
I want to get desc field as 8byte..
I tried using "SUBSTR". like this..
"SUBSTR("XX6X132-6",0,8)"
but this result was "XX6X132-".
I need "XX6X1" as result.
How can I do this?
please let me know how to get "XX6X1".
any idea?
I have a question.
Im using Informatica PowerCenter7.1.2.
I want to convert from my textfile to flat file as CSV using "SUBSTR" function with multibyte.
for example ## XXX is multibyte chara(Shift_JIS)
--------my txt file-----
No | country | name |desc
1|japan|nab matsui|XX6X132-6
2|USA|ichiro suzuki|XX88X54-44
-----------result------------
No,country,name,desc
1,"japan","nab matsui","XX6X1" <- 8byte
2,"USA","ichiro suzuki","XX88X" <- 8byte
so..
I want to get desc field as 8byte..
I tried using "SUBSTR". like this..
"SUBSTR("XX6X132-6",0,8)"
but this result was "XX6X132-".
I need "XX6X1" as result.
How can I do this?
please let me know how to get "XX6X1".
any idea?