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

Turning off 'Message Completion' message.

624 views
Skip to first unread message

Gummelkek

unread,
Aug 12, 2002, 5:57:57 AM8/12/02
to
Hi all and tia,

I am submitting a small job to the qinter/jobq that fires up every 90
seconds or so to check for various things and then do other things.
At the end of 90 seconds it resubmits itself back to qinter and the original
ends.

Ignoring the why's and wherefor's of program design and use of qinter, my
question is this.

Every time the job ends it sends me a completion message. eg
Job 133980/RMCC/CHKEMAIL completed normally on 12/08/02 at 19:18:09.

How do I stop this? I have tried

TAG99: SBMJOB CMD(CALL PGM(CHKEMLC)) JOB(CHKEMAIL) +
JOBQ(QINTER) LOG(0 30) LOGCLPGM(*NO)

But obv'ly that doesn't work. I am curious to know why.

Thanx


René H. Hartman

unread,
Aug 12, 2002, 6:08:54 AM8/12/02
to
*** post for FREE via your newsreader at post.newsfeed.com ***

You cannot stop this! It's a system function that tells you wether your
job completed normally or not. If you do not want this message sent to
you, you should submit the job under another user profile or using a
different message queue. Depending on the how and why of the job, this
may stop the job from doing what you want.
--
Vriendelijke groeten / Kind regards
René H. Hartman
R.H. Hartman Automatiserings Consultancy
www.hac-maarssen.nl


-----= Posted via Newsfeed.Com, Uncensored Usenet News =-----
http://www.newsfeed.com - The #1 Newsgroup Service in the World!
-----== 100,000 Groups! - 19 Servers! - Unlimited Download! =-----

Gummelkek

unread,
Aug 12, 2002, 8:01:56 AM8/12/02
to
hi rene,

tx for the reply.

so I will get a message every 90 seconds which fills up my msgq' and I can
do nothing about it?
it also beeps my terminal etc.

if i do change the msgq or user profile won't it just fill up something
else?

or is it safe to do this since it is only completions.

CMD(CALL PGM(CHKEMLC)) JOB(XHKEMAIL) +
JOBQ(QINTER) LOG(0 30) LOGCLPGM(*NO) +
MSGQ(*NONE)

i presume that if the job falls over it will still tell qsysopr.

Tim M

unread,
Aug 12, 2002, 8:42:44 AM8/12/02
to
Using MSGQ(*NONE) on the SBMJOB command will prevent any completion message
from being sent normal or abnormal.

In the program CHKEMLC you need to trap all errors, usually with MONMSG
(CPF0000 RPG000 etc...) and send a message to QSYSOPR informing of the
impending failure.


"Gummelkek" <rmcc...@hotmail.com> wrote in message
news:UsN59.10705$Sy4....@news-server.bigpond.net.au...

Karl Hanson

unread,
Aug 12, 2002, 9:06:42 AM8/12/02
to
"René H. Hartman" wrote:

>
> Gummelkek wrote:
> >
> > I am submitting a small job to the qinter/jobq that fires up every 90
> > seconds or so to check for various things and then do other things.
> > At the end of 90 seconds it resubmits itself back to qinter and the
> > original ends.
> >
> > Ignoring the why's and wherefor's of program design and use of
> > qinter, my question is this.
> >
> > Every time the job ends it sends me a completion message. eg
> > Job 133980/RMCC/CHKEMAIL completed normally on 12/08/02 at 19:18:09.
> >
> > How do I stop this? I have tried
> >
> > TAG99: SBMJOB CMD(CALL PGM(CHKEMLC)) JOB(CHKEMAIL) +
> > JOBQ(QINTER) LOG(0 30) LOGCLPGM(*NO)
> >
> > But obv'ly that doesn't work. I am curious to know why.
> >
>
> You cannot stop this! It's a system function that tells you wether your
> job completed normally or not. If you do not want this message sent to
> you, you should submit the job under another user profile or using a
> different message queue. Depending on the how and why of the job, this
> may stop the job from doing what you want.
> --

Have you tried SBMJOB .. MSGQ(*NONE) ?

Message queue (MSGQ) - Help

*NONE
No completion message is sent.


--
Karl Hanson

René H. Hartman

unread,
Aug 12, 2002, 9:07:55 AM8/12/02
to
*** post for FREE via your newsreader at post.newsfeed.com ***

That might work, but you may not notice when it falls over. It will
still keep flooding your system log with job start and stop mesages
though. Why don't you just keep one job that performs whatever check you
want and wait 90 secs before doing it again? That would be preferable
from a performance point of view as well. Even better, if your
email-delivery sends a message to a message queue, you might monitor
that queue and simply wait for a message to appear and then process it.

--
Vriendelijke groeten / Kind regards
René H. Hartman
R.H. Hartman Automatiserings Consultancy
www.hac-maarssen.nl

"Gummelkek" <rmcc...@hotmail.com> schreef in bericht
news:UsN59.10705$Sy4....@news-server.bigpond.net.au...


> hi rene,
>
> tx for the reply.
>
> so I will get a message every 90 seconds which fills up my msgq' and I
can
> do nothing about it?
> it also beeps my terminal etc.
>
> if i do change the msgq or user profile won't it just fill up
something
> else?
>
> or is it safe to do this since it is only completions.
>
> CMD(CALL PGM(CHKEMLC)) JOB(XHKEMAIL) +
> JOBQ(QINTER) LOG(0 30) LOGCLPGM(*NO) +
> MSGQ(*NONE)
>
> i presume that if the job falls over it will still tell qsysopr.
>

Ralph McClusky

unread,
Aug 13, 2002, 10:26:38 PM8/13/02
to
Hi all,

tx for the answers.

Yes , I agree there are better ways to do it, but my question was really
about the stopping msgq completion messages.
The answers re: MSGQ(*NONE) were 100% spot on.

Tx again.

"Gummelkek" <rmcc...@hotmail.com> wrote in message

news:FEL59.10260$Sy4....@news-server.bigpond.net.au...

0 new messages