read ascii code value in a sequential file

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
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

i am not sure, but i think it's posible.
Convert Ascii to UTF8 in UNIX itself and process the file.
pandeeswaran
kmsekhar
Premium Member
Premium Member
Posts: 58
Joined: Fri Apr 16, 2010 12:58 pm
Location: Chn

Post by kmsekhar »

try to use ISO-8859-1
marchana
Participant
Posts: 18
Joined: Tue Jul 13, 2010 2:32 am

Post by marchana »

Thanks for your reply. i tried by converting into UTF8 file, its working fine :) .

For the first time itself ,i tried that ISO-8859-1 nls it's not working.

Is there any option to read that file without converting into UTF8 file?

Thanks a lot........
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

marchana wrote:i tried by converting into UTF8 file, its working fine :) .
Hi,
May i know how did you convert to UTF-8?
using any shell script?

Thanks
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I assume via iconv. No, not that one, this one.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

I tried iconv,but it seems not working for me.

Code: Select all

$ cat testa
jhi|hsj hjh |shj uu

Code: Select all

$ iconv -f iso-8859-1 -t utf-8 <testa > abcde
Not supported iso-8859-1 to utf-8

Code: Select all

$ iconv -f utf-8 -t iso-8859-1 <testa > abcde
Not supported utf-8 to iso-8859-1
Any thoughts on this?

Thanks
pandeeswaran
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

My first thought? Man, I wish you'd learn how to use the code tags so I don't "need" to constantly clean them up. Second thought: perhaps I assumed... poorly.
-craig

"You can never have too many knives" -- Logan Nine Fingers
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Sure! i will follow.

Thanks
pandeeswaran
Post Reply