View Full Version : SNDMSG using QCMDEXC
Guest.Visitor
11-26-2003, 09:17 AM
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)
GlenKerner
11-26-2003, 11:31 AM
simply change the eval statement to say: eval ovrcmd = 'SNDMSG MSG(' + MSGTEXT + ') TOMSGQ(OAMSGQ)' This will give the variable ovrcmd the correct command string needed
ejolro
11-26-2003, 11:31 AM
I'm sending a message to an ASYNC from an ILE pgm using the SNDMSG command. It will not let me use a variable built in the program to send the message. How can I get around this? The code is posted. The message said that &MSGTEXT was not a usable variable with the command. Any help would be greatly appreciated. Thank you, Erik <hr width=50 align=left>Code ('http://www.mcpressonline.com/mc/showcode@@.6ae88736')
Powered by vBulletin® Version 4.1.5 Copyright © 2013 vBulletin Solutions, Inc. All rights reserved.