|
I am not sure, but i think that you can not have several MONMSG statement one
after the other. I think the second MONMSG will monitor error generated by the
1rst MONMSG, not the CPYF command.
Denis Robitaille
Directeur service technique
Cascades Inc
819 363 5187
fax 819 363 5177
>>> "Simon Coulter" <shc@flybynight.com.au> 12/29/99 11:36PM >>>
...
CPYF FROMFILE(FROMLIB/FROMFILE) +
TOFILE(TOLIB/TOFILE) FROMMBR(*FIRST) +
TOMBR(*FIRST) MBROPT(*REPLACE) CRTFILE(*NO)
MONMSG MSGID(CPF2817) CMPDTA(CPF2869) EXEC(DO)
/* Handle empty from-file */
ENDDO
MONMSG MSGID(CPF2817) CMPDTA(CPF2861) EXEC(DO)
/* Handle whatever */
ENDDO
MONMSG MSGID(CPF0000) EXEC(DO)
/* Handle anything else */
ENDDO
+---
| This is the RPG/400 Mailing List!
| To submit a new message, send your mail to RPG400-L@midrange.com.
| To subscribe to this list send email to RPG400-L-SUB@midrange.com.
| To unsubscribe from this list send email to RPG400-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.