Message Queue
1345 pts.
0
Q:
Message Queue
Lets say a user "accidently" sends the wrong message to a user. How can an administrator go into that message queue while its being used and delete it. This can be done when the user is signed off but now while in use. A sensitive message was sent and it needed to be deleted. I told them not to use the 400 for that stuff but do they ever listen....  Thanks in advance.

Ron

 

ASKED: Nov 2 2009  8:23 PM GMT
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _
0
1345 pts.
0
A:
 RATE THIS ANSWER
0
Click to Vote:
  •   0
  •  0
  • AddThis Social Bookmark Button
I don't think you can by any conventional means. One of the messaging API's at the info center may help though. You can find them at:

http://publib.boulder.ibm.com/infocenter/iseries/v5r4/index.jsp?topic=/apis/mh1.htm

========================================================

A message queue may be allocated for *CHANGE (delete) to a single job at a time. Any number of jobs may (add) but only one can (delete).

Tom
========================================================

Anyway to transfer the controling job to the admin?

Ron
Last Answered: Nov 3 2009  1:07 PM GMT by RonKoontz   1345 pts.
Latest Contributors: TomLiotta   7610 pts., Teandy   3165 pts.
0
0
Discuss This Answer:
_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _



_ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _ _

Teandy   3165 pts.  |   Nov 3 2009  7:21PM GMT

Ron,
You may want to look into a Break handling program. I have never used one but from what I understand, they will allow you to execute commands on behalf of the user.

Here is a couple of sample programs I found that might help.

 <a href="http://www.dbg400.net/foswiki/bin/view/DBG400/BreakPgm#Message_Break_Handling_Program" title="http://www.dbg400.net/foswiki/bin/view/DBG400/BreakPgm#Message_Break_Handling_Program" target="_blank">http://www.dbg400.net/foswiki/bin/view/D…</a>

 <a href="http://www.sentinex.com/mqbh.html" title="http://www.sentinex.com/mqbh.html" target="_blank">http://www.sentinex.com/mqbh.html</a>

You can fild more at:

 <a href="http://www.google.com/search?hl=en&q=%22Break+handling+program%22&aq=f&oq=&aqi=" title="http://www.google.com/search?hl=en&q=%22Break+handling+program%22&aq=f&oq=&aqi=" target="_blank">http://www.google.com/search?hl=en&q…</a>

 

TomLiotta   7610 pts.  |   Nov 5 2009  2:21AM GMT

Anyway to transfer the controling job to the admin?

What OS version/release? Pre-V5R4, you could use STRSRVJOB with a TRCJOB *ON EXITPGM() command to set an exit program to run in the serviced job. At V5R4, the EXITPGM() parameter was made inoperative.

And at V5R4, the Call Job Interrupt Program (QWCJBITP) API was made available as a way to make up for the TRCJOB change.

In both cases, it takes some significant authority as well as some experience to use the facility well.

Tom

 
0