Since sending a message, why not stop using dynamic\impromptu
message [text], and just let the message handler feature replace the
string variable TRIMmed into a message string defined with a
specific message identifier? ADDMSGD MSGID(XYZABCD)
MSGFILE(MyMsgFile) MSG('Customer &1 not found.') VAR((*CHAR 14))
[cmd syntax is suspect\un-verified] and then send the
edited\character result as the replacement variable for send message
and retrieve message.