In reply to Paige Miller.

Agree, this needs to be clarified. I added the following justification to the Code highlights section:
▪ In the FUNCTION statement we assign the length of the returned value as $32767 to accommodate the longest possible character string.

I also added the following clarification to the Usage highlights section:
▪ Please note that before calling the TRIMS function we assign the lengths for the variables XB, XL, and XT. Had we not done that, these variables would be assigned the maximum length of 32,767 bytes as specified in the TRIMS function definition.

Thank you, Paige, for your very insightful feedback.