|
I have a RPGLE that generates LOTS of RNX0114 messages.
when the program is done, I want to remove those messages from the jobs
message queue.
However, I can't figure out how to get to those messages. I think I need
some different setting for PGMQ:
SNDPGMMSG MSG('/* Start of Notes Program. */') +
KEYVAR(&STARTKEY)
CALL NOTESPGM11
CHGVAR VAR(%BIN(&MSGKEY 1 4)) VALUE(%BIN(&STARTKEY
1 4))
toploop:
RCVMSG PGMQ(*PRV) MSGTYPE(*EXCP) MSGKEY(&MSGKEY) +
RMV(*YES)
MONMSG MSGID(CPF2415) EXEC(GOTO BOTTOM)
GOTO toploop
BOTTOM:
ENDPGM
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.