I use in MONMSG command ,the CPFXXXX .
For example the CPFXXXX for "Object/file already exist".
(be the way: what is the CPFXXXX ???)
Is the a way to find any CPFXXXXX which i need in mine CL, faster????
thanks.
--
Dr.Ugo Gagliardelli,Modena,ItalyCertifiedUindoscrasherAñejoAlcoolInside
Spaccamaroni andate a cagare/Spammers not welcome/Spammers vão à merda
Spamers iros a la mierda/Spamers allez vous faire foutre/Spammers loop
schijten/Spammers macht Euch vom Acker/Spamerzy wypierdalac'
(1) If you go to IBM Infocenter on the web for the command that you
want to see a list of possible CPF errors for,
(http://publib.boulder.ibm.com/infocenter/iseries/v5r4/topic/cl/chkobj.htm
for example), you can get a list of these errors.
(2) I am guessing that you don't actually want to know the specific CPF
errors that could be generated, just to trap them all with your MONMSG.
If so, just use MONMSG CPF0000 and that will trap all CPF errors for
the command.
Hope this helps.
If you know the CL command for which a monitorable message may be
generated, you can also find the list of messages in the command's help
text by prompting on the green screen. For example type:
===> CHKOBJ
on a command line and press F4. Then move the cursor up and press F1.
Scroll down and you get a list of messages like this:
Error messages for CHKOBJ
*ESCAPE Messages
CPF9801 Object &2 in library &3 not found.
CPF9802 Not authorized to object &2 in &3.
...
--
Karl Hanson
Thanks to all,
@Karl Hanson thats it !!
BUT I USE THE CHKOBJ COMMAND....
HOW CAN I "GRAB" THE MSG FOR "OBJECT ALREADY EXIST" WHICH IS NOT A
ERROR FOR THE CHKOBJ COMMAND AND WHICH NOT CAUSE ANY CPFXXXX???
Example:
STRPGM:
CHKOBJ OBJ(JIM/AAAA) OBJTYPE(*FILE)
MONMSG MSGID(CPF9801) EXEC(GOTO CMDLBL(NOTFOUND))
GOTO FOUND
NOTFOUND:
CRTPF FILE(JIM/AAAA) RCDLEN(128)
FOUND:
CALL RunMyProgram
ENDPGM:
"marsias" <atti...@attiki-aedak.gr> wrote in message
news:1147864760.3...@y43g2000cwc.googlegroups.com...
You can also group commands within the EXEC of MONMSG using DO/ENDDO.
For example you could remove messages from the job log.
CRTSRCPF QTEMP/AAAA
MONMSG CPF7302 EXEC(DO)
RCVMSG MSGTYPE(*EXCP) RMV(*YES) /* Delete CPF7032 from job log */
RCVMSG MSGTYPE(*DIAG) RMV(*YES) /* Delete CPF5813 from job log */
ENDDO
--
Karl Hanson