Issue with reading the fixed width multi-byte characters

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
senthilnaga
Participant
Posts: 1
Joined: Fri Mar 04, 2016 4:37 am

Issue with reading the fixed width multi-byte characters

Post by senthilnaga »

The input file is a fixed width '.dat' file and we read the file using a 'Sequential file' stage and we segregate the columns based on the position as the input file is fixed width. The issue arises when we started receiving the multi-byte characters in name and address field.
Since the multi-byte characters occupy more than one character, sequential file stage reads it wrongly. I even changed the NLS setting to UTF-8, but it didn't work. Please advise how to resolve this issue. :roll:
prasson_ibm
Premium Member
Premium Member
Posts: 536
Joined: Thu Oct 11, 2007 1:48 am
Location: Bangalore

Post by prasson_ibm »

Hi,

Read it as Unicode character.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

And just post your issue once in one forum, please. No need to spread it around.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply