Richard, you cannot 'call' an SRB routine, it would simply execute the code under your TCB.
Establishing the SRB makes the Control Program invoke it with the designated parameter list. Insert a DC X'0000' to validate that the SRB routine abends S0C1. You'll have to check SYS1.LOGREC if I remember correctly, to see the abend data. Kind regards, Abe Kornelis ========== Op 26/11/2024 om 21:18 schreef Richard Zierdt: > SCHEDULE and IEAMSCHD (recommended) services create an SRB, but how is the > SRB called? > The SRB is not invoked by IEAMSCHD. Or is it? > > 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. > Thanks-- > Richard Zierdt > > Confidentiality Warning/Avertissement de confidentialité: > > This message is intended only for the named recipients. This message may > contain information that is privileged or confidential. If you are not the > named recipient, its employee or its agent, please notify us immediately and > permanently destroy this message and any copies you may have. Ce message est > destiné uniquement aux destinataires dûment nommés. Il peut contenir de > l'information privilégiée ou confidentielle. Si vous n'êtes pas le > destinataire dûment nommé, son employé ou son mandataire, veuillez nous > aviser sans tarder et supprimer ce message ainsi que toute copie qui peut en > avoir été faite. > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
