Indicates whether a terminal supports double byte character set data streams (DBCS).
If the system is operating with double byte character set (DBCS), support enabled (SYSPARMS DBCS=YES), display terminals capable of operating in this mode are supported by the system, and can enter and display data represented by DBCS data streams. An example of DBCS implementation is the KANJI language used in Japan. If operating with DBCS enabled, the current terminal, that is, the terminal in whose environment the NCL procedure is executing, might or might not be capable of DBCS operation. Also, if the terminal is capable of DBCS operation, the implementation differs between IBM and Fujitsu terminals.
The &ZDBCS system variable therefore allows a procedure to determine whether the current terminal can support DBCS operation and, if so, whether it supports the IBM or the Fujitsu implementation of DBCS.
One of the following values will be returned:
The terminal supports the IBM implementation of DBCS
The terminal supports the Fujitsu implementation of DBCS
The terminal supports the Hitachi implementation of DBCS
The terminal does not support DBCS
Example: &ZDBCS
&GOTO .&ZDBCS
.
.
.
.NO
.
.
-* terminal does not support DBCS .
.DBCS1
.
.
-* terminal supports IBM DBCS .
.DBCS2
.
. -* terminal supports Fujitsu DBCS.
Note: When operating with DBCS support disabled (SYSPARMS DBCS=NO), the &ZDBCS variable always returns a value of NO.
| Copyright © 2009 CA. All rights reserved. |
|