|
Jeff, My vote is for the QMHSNDPM API. I placed it into a module about a year ago for a small project and am amazed at how often I have used it for other projects since then. Because the code has been in use for a year I don't need to test it over again when I use it so it cuts down on development time also. Rick -----Original Message----- From: Jeff Crosby [mailto:jlcrosby@DILGARDFOODS.COM] Sent: Monday, December 02, 2002 2:15 PM To: Midrange Mailing List Subject: SNDPGMMSG from HLL program I want to send a message via SNDPGMMSG from an RPG4 program. SNDPGMMSG is allowed in CL programs but not HLL programs. I want the message queue to look 'clean' meaning like this: Display Messages System: DILGARD Queue . . . . . : ORDERS Program . . . . : *DSPMSG Library . . . : QUSRSYS Library . . . : Severity . . . : 00 Delivery . . . : *HOLD Type reply (if required), press Enter. This is the message I want to send from a HLL. This is another message I want to send from a HLL. This is a 3rd message I want to send from a HLL. This is a 4th message I want to send from a HLL. This is a 5th message I want to send from a HLL. (I adjusted the above so it hopefully won't wrap.) If I use the SNDMSG command (which is allowed from a HLL), the message queue looks cluttered, like this: Display Messages System: DILGARD Queue . . . . . : ORDERS Program . . . . : *DSPMSG Library . . . : QUSRSYS Library . . . : Severity . . . : 00 Delivery . . . : *HOLD Type reply (if required), press Enter. From . . . : JEFF 12/02/02 15:04:49 This is the message I want to send from a HLL. From . . . : JEFF 12/02/02 15:04:49 This is anoth message I want to send from a HLL. From . . . : JEFF 12/02/02 15:04:49 This is a 3rd message I want to send from a HLL. From . . . : JEFF 12/02/02 15:04:49 This is a 4th message I want to send from a HLL. From . . . : JEFF 12/02/02 15:04:49 This is a 5th message I want to send from a HLL. (Note all the "From" lines in there.) How can I do a 'lean & clean' message send? Thanks. -- -- Jeff Crosby Dilgard Frozen Foods, Inc. P.O. Box 13369 Ft. Wayne, IN 46868-3369 260-422-7531 The opinions expressed are my own and not necessarily the opinion of my company. Unless I say so. _______________________________________________ This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing list To post a message email: MIDRANGE-L@midrange.com To subscribe, unsubscribe, or change list options, visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l or email: MIDRANGE-L-request@midrange.com Before posting, please take a moment to review the archives at http://archive.midrange.com/midrange-l.
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.