translate(string,to,from) - changes from chars to to chars
-
True
-
False
The translate() function in SAS replaces characters specified in 'from' with corresponding characters in 'to'. It performs character-level substitution in strings.
True. This describes the REXX TRANSLATE(string, tableo, tablei) built-in function, where the parameter order is (string, to-table, from-table). Each character in string that matches a character in the from table is replaced by the character in the corresponding position of the to table; characters not found in from are left unchanged. So "changes from chars to to chars" correctly summarizes the behavior, and the parameter order given (string, to, from) matches REXX's actual signature. This is distinct from Oracle SQL's TRANSLATE(expr, from, to), which has the from/to arguments reversed — so context (REXX vs SQL) matters, but as stated for REXX the statement is accurate.