CONVERT (Statement)


The CONVERT statement converts one or more characters in a string to their corresponding replacement characters.

 

COMMAND SYNTAX

CONVERT expression1 TO expression2 IN expression3

 

SYNTAX ELEMENTS

expression1 is the list of all characters to translate in expression3.
expression2 is the list of characters that will be converted to.
expression3 is the string to which the conversion will apply.

 

NOTES

There is a one to one correspondence between the characters in expression1 and expression2. That is, character 1 in expression1 is converted to character 1 in expression2, etc.

See also the CONVERT function.

 

EXAMPLE

Value = 'ABCDEFGHIJ'
CRT 'Orignal:   ':Value
CONVERT 'BJE' TO '^+!' IN Value
CRT 'Converted: ':Value

Orignal:   ABCDEFGHIJ
Converted: A^CD!FGHI+


jBC