The character set translation routines in the Client Option use tables in the SYGWXCPH customization module for the conversion of character sets. IBM Unicode support requires the CCSIDs of the character sets involved in conversion, so the translation tables in the SYGWXCPH customization module and the SYGWMCXL macro have been modified to contain CCSIDs.
The USEIBMUNICODE parameter has been added to the SYGWMCST customization macro. The following are valid values for the USEIBMUNICODE parameter:
Y – Use IBM support for character set conversions.
N – Use the original Client Option support.
The SYGWMCXL macro has been modified to include the following parameters, which are used for character conversion:
CCSID – the CCSID for the character set.
CHARSETTYPE – the character set type. A indicates ASCII, and E indicates EBCDIC.
CHARSIZE – the maximum length of a character, between 1 and 4 bytes.
PAD – the padding character. This parameter value depends on the type of character set. For ASCII, the padding character is 20. For EBCDIC, the padding character is 40.
SYGWMCXL TYPE=ENTRY, CHARSET=cp939,CHARSETBYTES=D, CCSID=939,CHARTYPE=E,CHARSIZE=2,PAD=40
SYGWMCXL TYPE=ENTRY, CHARSET=Russian,CHARSETBYTES=S, CCSID=1025,CHARTYPE=E,CHARSIZE=1,PAD=40
Copyright © 2005. Sybase Inc. All rights reserved. |
![]() |