SET OUTPUT TRIM
Controls how trailing blanks in output lines are treated.
SET OUTPUT TRIM ON|OFF
The OUTPUT TRIM option is set OFF by default.
Normally, trailing blanks are retained in the output stream. To remove trailing blanks, set OUTPUT TRIM to ON. This option works with single lines of text; to trim trailing blanks in fields, use $trim.