How to: |
The DCTRAN function translates a single-byte or double-byte character within a character string to another character based on its decimal value. To use DCTRAN, you need to know the decimal equivalent of the characters in internal machine representation.
In a non-Unicode configuration, the DCTRAN function translates single-byte to single-byte and double-byte to double-byte. The DCTRAN function cannot translate single-byte to double-byte and double-byte to single-byte.
DCTRAN(length, source_string, indecimal, outdecimal, output_format)
where:
Double
Is the number of characters in source_string .
Alphanumeric
Is the character string to be translated.
Double
Is the ASCII or EBCDIC decimal value of the character to be translated.
Double
Is the ASCII or EBCDIC decimal value of the character to be used as a substitute for indecimal.
Alphanumeric
In the following:
iWay Software |