TRANSLATE Function

── TRANSLATE ── ( ──<string expression>── , ──<translate table>── ) ───┤

The TRANSLATE function returns a string of the same length as the string expression; each character of the string expression is translated according to the designated translate table.

The translate table can be a translate table identifier declared in the program or one of the intrinsic translate tables. The use of a subscripted variable as a translate table is not allowed in the TRANSLATE function.

Examples of the TRANSLATE Function

TRANSLATE(S,HEXTOEBCDIC) 
TRANSLATE(TAKE(S,10),MYTT)