DTW_MBMODE

AIX HP-UX Linux OS/2 OS/390 OS/400 PTX SUN Win NT
X X X X X
X X X

Purpose

Provides multibyte character set (MBCS) support for Net.Data built-in string and word functions. You can set this variable in the Net.Data initialization file, but you can use it in the macro to set or override the current setting.

Specify the value of this variable using a DEFINE statement or with the @DTW_ASSIGN() function.

OS/400 users: Net.Data for OS/400 automatically enables functions for MBCS support and does not need this variable. Net.Data for OS/400 ignores this variable in macros that are migrated to the OS/400 operating system.

This configuration variable works with the DTW_UNICODE configuration variable. If DTW_UNICODE uses the default value of NO, the value of DTW_MBMODE is used. If DTW_UNICODE is set to a value other than NO, its value is used. Table 24 illustrates how the settings of these two variables determine how built-in functions process strings:

Table 24. Relationship Between the Settings of DTW_UNICODE and DTW_MBMODE
If DTW_UNICODE is set to ... If DTW_MBMODE=YES If DTW_MBMODE=NO
NO Supports DBCS mixed with SBCS Supports SBCS only
UTF8 Supports UTF-8 Supports UTF-8

Values

DTW_MBMODE="YES"|"NO"

Table 25. DTW_MBMODE Values
Values Description
YES Specifies MBCS support for string and word functions.
NO Specifies that string and word functions do not have MBCS support. NO is the default.

Examples

Example 1: Overrides the value in the INI file

INI file:

DTW_MBMODE NO
 

Macro:

 %DEFINE DTW_MBMODE = "YES"


[ Top of Page | Previous Page | Next Page | Index ]