RTRIM(x,y) is a string function that removes the blanks (code attribute ASCII, UNICODE) or binary zeros (code attribute BYTE) from the end of the character string x (string specification) and then all of the characters specified in the character string y (string specification). The result of RTRIM(x,y), therefore, ends with the last character that was not specified in y. Only expressions that have an alphanumeric value as a result are allowed as a string specification (string spec).
|
Result of the RTRIM(x,y) Function |
RTRIM(x) |
Only blanks (code attribute ASCII, UNICODE) or binary zeros (code attribute BYTE) are removed from x. |
x is a NULL value |
NULL Value |
See also: