As Binyamin points out ALET 1 does not mean "Home address space (HASN)" - it means "Secondary address space (SASN)".
It may well be actually the same value a lot of the time, but you cannot (and must not) assume that to be the case. Consider a case where all THREE addresses can be different : (assuming PC-ss owned by two server ASIDs and ETDEF with SASN=OLD) Caller ASID = X'00C0' Your PC-ss owner = X'00A0' Another PC-ss owner = X'00B0' Caller logs on to TSO : HASN = 00C0 SASN = 00C0 PASN = 00C0 Caller invokes "another" PC-ss routine : HASN = 00C0 SASN = 00C0 PASN = 00B0 Code in "another" PC routine invokes your PC-ss : HASN = 00C0 (ALET=2) SASN = 00B0 (ALET=1) PASN = 00A0 (ALET=0) If you then reference something like TCB or RB control blocks using ALET=1 thinking that you are looking at "home" you might abend - but even worse it might "work" because (currently) TCB addresses tend to be the same address for the first few tasks in each address space but the data will be incorrect for your purposes. Rob Scott Rocket Software From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Binyamin Dissen Sent: Wednesday, December 6, 2023 1:05 PM To: [email protected] Subject: Re: Parameters to ARR routine EXTERNAL EMAIL You cannot guarantee that ALET 1 addresses the home address space. depending on how the ETDEF is used, the ALET 1 at entry may point to the CP or the primary at the time of the PC. If you want HOME, use ALET 2. That is (almost - it appears that some SLIH / SRB's do not have an ALET to the home address space) always placed in the DU referring to the home address space. Also, from a PC routine, the RB information is less useful than the information in the current linkage stack entry. On Tue, 5 Dec 2023 15:27:52 -0500 Joseph Reichman <[email protected]<mailto:[email protected]>> wrote: :>I just saw it you place the recover param the modifiable area of linkage :>stack :> :>I'm updating file 192 part of the modifications is chaining the TCB/rb/cde :> :>In that case I would need at set the AR to 1 for home address space and do :>sac 512 to reference the TCB/rb/cde chain :> :>Joe Reichman :> :> :>On Tue, Dec 5, 2023 at 3:24?PM [email protected]<mailto:[email protected]> <[email protected]<mailto:[email protected]>> wrote: :>> SET ETDEF has a parameter for an Associated Recovery Routine (ARR) :>> If You develop an ARR, I would be interested in seeing what You do/ . :>> I have an ARR , I like to see what others do in it . :>> I can send You what 'Im playing with now and some documentation. . :>> ---------- Original Message ---------- :>> From: Joseph Reichman <[email protected]<mailto:[email protected]>> :>> To: [email protected]<mailto:[email protected]> :>> Subject: Parameters to ARR routine :>> Date: Tue, 5 Dec 2023 14:36:06 -0500 :>> Doesn't seem like ETDEF has a param for the parameters list for ARR's -- Binyamin Dissen <[email protected]<mailto:[email protected]>> http://www.dissensoftware.com<http://www.dissensoftware.com> Director, Dissen Software, Bar & Grill - Israel ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected]<mailto:[email protected]> with the message: INFO IBM-MAIN ================================ Rocket Software, Inc. and subsidiaries ? 77 Fourth Avenue, Waltham MA 02451 ? Main Office Toll Free Number: +1 855.577.4323 Contact Customer Support: https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - http://www.rocketsoftware.com/manage-your-email-preferences Privacy Policy - http://www.rocketsoftware.com/company/legal/privacy-policy ================================ This communication and any attachments may contain confidential information of Rocket Software, Inc. All unauthorized use, disclosure or distribution is prohibited. If you are not the intended recipient, please notify Rocket Software immediately and destroy all copies of this communication. Thank you. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
