Determines whether the argument contains single-byte or double-byte characters and returns either SBCS or DBCS. &ENCODING
tests each byte to determine whether the byte is within a numeric range; the range is determined by your country code. The
generator returns SBCS for country codes--such as US--that do not include double byte characters.
Restriction: This topic applies only when the AppMaster Builder AddPack has been installed, and applies only to Windows platforms.
Use this rule for debugging programs. To test if a value is hexadecimal, use &IS-HEX; to convert the hexadecimal value, use
the &HEX rules.
Syntax:
&ENCODING (&variablename)
Alias:
&encoding (&variablename)
&Encoding (&variablename)
Example:
The following assume the US country code.
&ENCODING ("ABCD") = "SBCS"
&ENCODING (&HEX-AS-STRING ("4142")) = "SBCS"
&ENCODING (&HEX-AS-STRING ("8142")) = "SBCS"