$ZCHset

$ZCHSET is a read-only intrinsic special variable that takes its value from the environment variable gtm_chset. An application can obtain the character set used by a GT.M process by the value of $ZCHSET. $ZCHSET can have only two values --"M", or "UTF-8".

[Caution] Warning

GT.M performs operations on literals at compile time and the character set may have an impact on such operations. Therefore, always compile with the same character set as that used at runtime.

Example:

$ export gtm_chset=UTF-8
$ /usr/lib/fis-gtm/V6.0-001_x86/gtm
GTM>write $zchset
UTF-8
GTM>