On Tue, 26 Nov 2024 20:18:49 +0000 Richard Zierdt
<[email protected]> wrote:

:>SCHEDULE and IEAMSCHD (recommended) services create an SRB, but how is the 
SRB called?
:>The SRB is not invoked by IEAMSCHD.  Or is it?

The control blocks are built and placed on the appropriate dispatcher queue.

:>Here's a scenario:
:>STORAGE OBTAIN  (in csa)
:>LOAD srb program (directed load) into csa storage
:>IEAMSCHD the SRB

:>OK - then what?  The SRB is not executed.
:>The address where the SRB was LOADed can be called by, e.g., BASR.
:>Is this the intended design ?  If so, great.

:>However, IEAMSCHD has a parameter called PARM  that "Specifies input to be 
loaded into register 1 when the SRB routine receives control."  (from 
Authorized Assembler Services Reference manual)

:>Receives control from whom?   If called by BASR 14,15  anything could be in 
register 1.
:>Seems like there's something else involved here, but what is it?
:>Here's the IEAMSCHD code:
:>IEAMSCHD EPADDR=SRB@,
:>      ENV=HOME,
:>      PARM=ParmAddr,
:>      SYNCH=YES,
:>      SYNCHCOMPADDR=SRBCmp1@,
:>      SYNCHCODEADDR=SRBCmp2@,
:>      SYNCHRSNADDR=SRBRsn@,
:>      PRIORITY=CURRENT,
:>      MF=(E,IEAMSCHL,COMPLETE)
:>It returns zero in R15.

With these parameters, you are requesting that the issuer be suspended until
the UOW identified by the SRB terminates.

--
Binyamin Dissen <[email protected]>
http://www.dissensoftware.com

Director, Dissen Software, Bar & Grill - Israel

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to