|
Leif, Try msgid CPF9898, it's a message that accepts your text as it's parameter data. We use the following CL program (SNDSTSMSG): *************** Beginning of data ************************************* /* ------------------------------------------------------------------*/ /* SNDSTSMSG Send a status message to the screen */ /* ------------------------------------------------------------------*/ SNDSTSMSG: PGM PARM(&MSGDTA) * DCL &MSGDTA *CHAR 70 /* Status message text */ SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSGDTA) + TOPGMQ(*EXT) MSGTYPE(*STATUS) MONMSG MSGID(CPF0000) ENDPGM /* End of program specifications */ /* ------------------------------------------------------------------*/ ****************** End of data **************************************** This is used by calling command SNDSTSMSG: *************** Beginning of data ********************************* CMD PROMPT('Send a status message') PARM KWD(MSGTEXT) TYPE(*CHAR) LEN(70) MIN(1) + EXPR(*YES) ****************** End of data ************************************ Within any other CL program you will find something like this: ---------------------------------------------------------- SNDSTSMSG MSGTEXT('XXXXXXXX command is executing') HTH Leif Svalgaard wrote: > > I meant line 24. and SNDPGMMSG complains that > I didn't give it a MSGID, and THAT is too much work > for the simple thing I'm trying to do. > +--- | This is the Midrange System Mailing List! | To submit a new message, send your mail to MIDRANGE-L@midrange.com. | To subscribe to this list send email to MIDRANGE-L-SUB@midrange.com. | To unsubscribe from this list send email to MIDRANGE-L-UNSUB@midrange.com. | Questions should be directed to the list owner/operator: david@midrange.com +---
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2025 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.