mailar@gmail.com wrote:[color=blue]
> Hi Serge,
> Thanks for your reply but actually I want this function to be used with
> CHAR and VARCHAR data types.
> Also, I am working on Windows(XP) platform.
> The ORACLE implementation of TO_SINGLE_BYTE is something like this
>
> Syntax
> to_single_byte::=TO_SINGLE_BYTE(attribute)
> Purpose
> TO_SINGLE_BYTE returns attribute with all of its multibyte characters
> converted
> to their corresponding single-byte characters; attribute can be of data
> type CHAR
> or VARCHAR2. The value returned is in the same data type as attribute.
> Any
> multibyte characters in attribute that have no single-byte equivalents
> appear in the
> output as multibyte characters.
> This function is useful only if your database character set contains
> both single-byte
> and multibyte characters.
> Example
> The following example illustrates going from a multibyte 'A' in UTF8 to
> a single byte
> ASCII 'A':
> SELECT TO_SINGLE_BYTE( CHR(15711393)) FROM DUAL;
> T
> -
> A
> So, Could you tell me is ther a function or some feature in DB2 which
> enables me to do this conversion.
> Also, could you help me in going about the implementation of this
> function in DB2.
>
> Thanks and regards
> mailar
>[/color]
I have to confess ignorance.
To the best of my knowledge there is no matching function in DB2 for LUW.
Cheers
Serge