|
/* ------------------------------------------------------------------*/ /* SNDSTSMSG Send a status message to the screen */ /* ------------------------------------------------------------------*/ SNDSTSMSG: PGM PARM(&MSGDTA)
SNDPGMMSG MSGID(CPF9898) MSGF(QCPFMSG) MSGDTA(&MSGDTA) + TOPGMQ(*EXT) MSGTYPE(*STATUS) MONMSG MSGID(CPF0000)
ENDPGM /* End of program specifications */ /* ------------------------------------------------------------------*/
James,
that is a good example what I am looking for. I like the idea to code the sending of messages into another program so that you can really reuse the code. Two questions remain:
1. Is the command SNDSTSMSG really an OS/400 command? 2. If you CALL program FWDPGMMSG are there no parameter passed to the programm?
or is this because both programs run in the same stack that you can read the messages of the calling program?
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.