It's Friday afternoon and my brain has gone completley blank, or maybe its my age.
I have an RPG pgm that is called from a command in QCMDSRC, I want to send a message back that is displayed on the command line once the pgm has ended
Whats the command?
Thanks in advance
This topic has been locked.
3 replies Latest Post - 2012-11-26T14:01:04Z by JohnxLong
Pinned topic RPG Send message to command line
Answered question This question has been answered.
Unanswered question This question has not been answered yet.
Updated on 2012-11-26T14:01:04Z at 2012-11-26T14:01:04Z by JohnxLong
scott_klement 2700007QFX242 PostsACCEPTED ANSWER
Re: RPG Send message to command line2012-11-25T05:29:48Z in response to JohnxLongWhat you want to do is send a *COMP (completion) message -- that's assuming that you're not reporting an error -- but just want to let the user know that all went well.
For an error, you want to send an *ESCAPE message instead. The caller will receive this as an exception.
There's no "command", per se, in RPG to send these. Instead, you'd want to call the Send Program Message (QMHSNDPM) API
From CL, however, there is a command -- SNDPGMMSG.