Thank you Alexie,

Looks like a call stack entry is a request processor if it contains *Rqs
messages in its pgm msg queue that have been received from the *EXT msgq and
moved to the pgm msg queue. ( system does this when "RCVMSG Pgmq(*Ext)
MsgType(*Rqs) Rmv(*No)" is run )

You might be able to simulate this by sending a *Rqs msg direct to the msgq
of the pgm.

When ENDRQS is run, the  system locates the relative call stack request
processor entry and sends a CPF1907 *Escape message to it. The *Escape msg
kills the pgms in the call stack that it flies over and is monitored by the
requester pgm.

Take a bow, OPM !  Very well done.

Steve Richter



----- Original Message -----
From: "Alexei Pytel" <pytel@us.ibm.com>
To: <midrange-l@midrange.com>
Sent: Thursday, November 01, 2001 11:58 AM
Subject: Re: CEE4ABN


>
> Any program can announce itself as a request processor - it's actually
very
> simple - something like sending *RSQ message to itself. I do not remember
> the details, but this is documented in "CL Programming" -
>
http://publib.boulder.ibm.com/pubs/html/as400/v5r1/ic2924/books/c4157214.pdf
>
> - see p.231.
>
>     Alexei Pytel
> - speaking for myself
>
>
>
>
>                     "Steve Richter"
>                     <srichter@AutoCoder       To:
<midrange-l@midrange.com>
>                     .com>                     cc:
>                     Sent by:                  Subject:     Re: CEE4ABN
>                     midrange-l-admin@mi
>                     drange.com
>
>
>                     11/01/2001 10:47 AM
>                     Please respond to
>                     midrange-l
>
>
>
>
>
>
> ----- Original Message -----
> From: "Alexei Pytel" <pytel@us.ibm.com>
>
> > Another option (somebody already mentioned it) - you can set up a
request
> > level at the root program of your application and ENDRQS - it will end
> > everything below request processor.
> > You can also use ENDRQS RQSLVL(1) to cancel everything upto QCMD which
is
> > usually (but not necessarily!) is the root program of the job (you may
> use
> > DSPJOB OPTION(*PGMSTK) to see what request levels are set up in your
> job).
> >
>
> How do you set up a "request level"
>
> How does the system know where a "request level" boundary resides?  Is
that
> something built into QCMD?
>
> Can a user pgm be a requester?
>
> thank you,
>
> Steve Richter
>
>
>
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
>
>
>
>
> _______________________________________________
> This is the Midrange Systems Technical Discussion (MIDRANGE-L) mailing
list
> To post a message email: MIDRANGE-L@midrange.com
> To subscribe, unsubscribe, or change list options,
> visit: http://lists.midrange.com/cgi-bin/listinfo/midrange-l
> or email: MIDRANGE-L-request@midrange.com
> Before posting, please take a moment to review the archives
> at http://archive.midrange.com/midrange-l.
>
>



As an Amazon Associate we earn from qualifying purchases.

This thread ...

Replies:

Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.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 on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.