You can't use CL-style variables there; it's literally trying to execute the OvrCmd string. Instead, concatenate 'SNDMSG MSG(' with the MsgText with ') TOMSGQ(OAMSGQ)' so that QCMDEXC sees this in OvrCmd: SNDMSG MSG(MsgText) TOMSGQ(OAMSGQ) If the MsgText contains blanks, you may need to add quotes to both ends, so that the OvrCmd looks like this: SNDMSG MSG('MsgText') TOMSGQ(OAMSGQ)

Reply With Quote