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
scott_klement 2700007QFX248 Posts
Re: RPG Send message to command line2012-11-25T05:29:48ZThis is the accepted answer. This is the accepted answer.What 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.
Re: RPG Send message to command line2012-11-26T12:46:40ZThis is the accepted answer. This is the accepted answer.
- scott_klement 2700007QFX
I've set that up, the message is appearing in my joblog but not at the bottom of the screen, I'm clearly missing something.
Re: RPG Send message to command line2012-11-26T14:01:04ZThis is the accepted answer. This is the accepted answer.
- JohnxLong 270001H26F
Thanks for the help