Convert Cyrillic data

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vijayg
Premium Member
Premium Member
Posts: 14
Joined: Wed Oct 10, 2007 7:55 am

Convert Cyrillic data

Post by vijayg »

We are working with the Russian data that is converted to Cyrillic charecter, how to convert it back(Russian)? I am not sure how the data was converted to Cyrillic. If we can do it in datastage that is well and good, can this be done in Unix?

Thanks for the help.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You need to find out, obviously, how it was converted to Cyrillic characters in the first place (nothing unexpected should happen in ETL). The short answer is that there are character maps between the outside world and DataStage, that convert from and to the external character set.

There is no mechanism whatsoever in DataStage for converting from English to Russian, unless you implement it yourself.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sudhindra_ps
Participant
Posts: 45
Joined: Thu Aug 31, 2006 3:13 am
Location: Bangalore

Post by Sudhindra_ps »

hi,

You could do this in Unix by using iconv function. The syntax for which is as below.
iconv -f <FromSourceCodePage> -t <ToTargetCodePage> <FileNameTobeConverted.txt> > <DestinationFileName>

Thanks & regards
Sudhindra P S
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

When I did a man iconv on my Linux server it professed ignorance. Does this command come with UNIX or is it something you built yourself?
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Sudhindra_ps
Participant
Posts: 45
Joined: Thu Aug 31, 2006 3:13 am
Location: Bangalore

Post by Sudhindra_ps »

hi Ray,

iconv command comes with UNIX. Please see documentation for the same in the below mentioned link.
http://www.gnu.org/software/libiconv/do ... onv.1.html

Thanks & regards
Sudhindra P S
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

But not in the man pages. :cry:

Thank you for the link.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Interesting. Iconv and man pages both here under HP-UX.
-craig

"You can never have too many knives" -- Logan Nine Fingers
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

man pages for the iconv function are present on AIX as well.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Turns out some man pages had been removed, to "save disk space".
:x
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

:lol: Brilliant! Who needs them gi-huge-ic man pages, anywho.
-craig

"You can never have too many knives" -- Logan Nine Fingers
vijayg
Premium Member
Premium Member
Posts: 14
Joined: Wed Oct 10, 2007 7:55 am

Convert Cyrillic data

Post by vijayg »

Thanks Guys. Sundhindra's Unix command works great for what we are doing. Appriciate it.
Post Reply