MIDRANGE dot COM Mailing List Archive



Home » MIDRANGE-L » February 2014

RE: need for a new CPF catch MONMSG



fixed

Below is an example of a MPLUS monitor for a CPA0701 with an additional MPLUS filter for CPF1002 cannot allocate object &1.
This is for our online credit card app, which does an exclusive lock for a data area for an authorization.
Once in a blue moon , our nightly BRMS SWA will cause the ALCOBJ to fail, MPLUS responds and keeps the app running.

ALCOBJ OBJ((CURBSTONE/CCDA3999 *DTAARA *EXCL))

Compare data

Message ID . . . . . : CPA0701
Message file . . . . : QCPFMSG
Library . . . . . . : QSYS

&Field/ Test Compare
Pos
A/O &3 EQ CPF1002

Test: EQ, NE, CT, NC

-----Original Message-----
From: midrange-l-bounces@xxxxxxxxxxxx [mailto:midrange-l-bounces@xxxxxxxxxxxx] On Behalf Of Peter Dow
Sent: Thursday, February 13, 2014 1:21 PM
To: midrange-l@xxxxxxxxxxxx
Subject: Re: need for a new CPF catch MONMSG

If this job is not mission critical, put it in a different jobq than the mission critical stuff, a job queue where it can sit in an error state until you get around to it.

Another point is placement of the MONMSG CPF0000. If you put this at the beginning of the program, it will apply globally to all commands in the program; if you place it immediately after a particular command, it will only apply to that command.

So if you really don't care whether the program completes successfully, you can do a global MONMSG. Also, the ones i've seen also ignore MCH0000. But the better solution is to handle expected errors by monitoring for them specifically and doing something appropriate.

--
*Peter Dow* /
Dow Software Services, Inc.
909 793-9050
petercdow@xxxxxxxxx <mailto:petercdow@xxxxxxxxx>
pdow@xxxxxxxxxxxxxx <mailto:pdow@xxxxxxxxxxxxxx> /

On 2/13/2014 5:47 AM, Hoteltravelfundotcom wrote:
Sorry if this is a little vague.

I have a small CL that runs daily. It creates a temp file that I use in the
Reporting tool.
We use the basic IBM Scheduler, they never bought a better product here and
they won't now.

( we tried to make this a view a while back but were unsuccessful).Anyway,
I have the CPF0000
monmsg on there but a couple of weeks ago that file was in use in a diff
view I was creating at that moment so the job aborted. but it hung waiting
for a response. the problem with that is, that other jobs are stuck in the
traffic jam and if my manager had not noticed, they would not have run for
most of the evening.

In such a case, I would like the job to just quit, as the data is not
mission critical, it's just for a report that is run occassionally.

Perhaps someone knows which other monmsg CPF i would add to that CL? I
can't have my jobs holding up others. In fact, this can cause the system to
not come up because of this.



---
This email is free from viruses and malware because avast! Antivirus protection is active.
http://www.avast.com





Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2014 by MIDRANGE dot 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 here. If you have questions about this, please contact