This command is a function and can only be referenced within a SET command. It returns a character string after truncating all trailing blanks.
~RTRIM (string)
A character expression after truncating all trailing blanks.
The character value or character variable
SET newstr = ~RTRIM (Name)