Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

HOW CAN I FIND FASTER ANY CPFXXXX MSG ???

1,416 views
Skip to first unread message

marsias

unread,
May 16, 2006, 7:52:59 AM5/16/06
to
Hello.

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.UgoGagliardelli

unread,
May 16, 2006, 8:35:39 AM5/16/06
to
marsias wrote:
> Hello.
>
> I use in MONMSG command ,the CPFXXXX .
>
> For example the CPFXXXX for "Object/file already exist".
>
> (be the way: what is the CPFXXXX ???)
Usually point out to a string that start by CPF then has other four
digits. In the case of a message ID the forst three character can be any
string (following the naming rules except for special characters) the
other digits are in the range 0-9 and a-f.

>
> Is the a way to find any CPFXXXXX which i need in mine CL, faster????
Yes you can, the "Programming Reference Summary" manual contains a
section where you'll find all monitorable error messages for most commands.

--
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'

poddys

unread,
May 16, 2006, 9:27:50 AM5/16/06
to
Two options....

(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.

Karl Hanson

unread,
May 16, 2006, 9:44:47 AM5/16/06
to
Dr.UgoGagliardelli wrote:
> marsias wrote:
>> Hello.
>>
>> I use in MONMSG command ,the CPFXXXX .
>>
>> For example the CPFXXXX for "Object/file already exist".
>>
< snip >

>>
>> Is the a way to find any CPFXXXXX which i need in mine CL, faster????
> Yes you can, the "Programming Reference Summary" manual contains a
> section where you'll find all monitorable error messages for most commands.
>

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

marsias

unread,
May 17, 2006, 7:19:20 AM5/17/06
to
Hello.

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???

Jim Thedorf

unread,
May 17, 2006, 8:09:36 AM5/17/06
to
If you do not get CPF9801 then the object exists. Think of no message as a
confirmation.

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...

Karl Hanson

unread,
May 17, 2006, 10:30:36 AM5/17/06
to

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

0 new messages