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
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! =-----
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.
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...
Have you tried SBMJOB .. MSGQ(*NONE) ?
Message queue (MSGQ) - Help
*NONE
No completion message is sent.
--
Karl Hanson
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.
>
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...