Thanks, Rob, Tom. Yes, Key 0 is dangerous, but documented as a requirement (for LINKAGE=BRANCH anyway). I was unaware of IEAMSXMP (and TCBTOKEN, which extracts the target program's TTOKEN). So I'm coding for those now. BTW, the standard from of POST supports register notation and RX-type. Rx does a LA - ST into the POST's parameter list, which means it's the address of the ASCB, not the ASCB itself. I'll try L Rx,ASCB and POST . . . ASCB=(Rx) and test that. Nonetheless, avoiding Key 0 is better. I'll reply later with results. Thanks again! ________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Rob Scott <00000618c90e6fdf-dmarc-requ...@listserv.ua.edu> Sent: Wednesday, September 4, 2024 12:54 PM To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> Subject: Re: POSTing a WAIT in another Address Space; POST ASCB= parameter; S602 Abend
This Message Is From an External Sender This message came from outside your organization. I agree with Tom - naked XM POST in Key0 makes my eye twitch nervously. I am not in the office, so cannot check myself, but take a look at the expansion in the listing to see how the ASCB keyword is treated. Maybe try loading the ASCBtokn into a reg and then code ASCB=(Rn)? Rob Scott Rocket Software Get Outlook for Android<https://urldefense.com/v3/__https://aka.ms/AAb9ysg__;!!HaceldhrWm2T3s6H!0aZilwOuWHoDK8U7N4PcPjBFv1Dv8XdQ29A1om6NkVlX_QLz44-EwvKvETarExhpQe7-ECim0dZ3kIkVEyRTWL1e52kgDEUp656JYz2L6Le98g$> ________________________________ From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> on behalf of Tom Harper <000005bfa0e23abd-dmarc-requ...@listserv.ua.edu> Sent: Wednesday, September 4, 2024 4:05:03 PM To: IBM-MAIN@LISTSERV.UA.EDU <IBM-MAIN@LISTSERV.UA.EDU> Subject: Re: POSTing a WAIT in another Address Space; POST ASCB= parameter; S602 Abend EXTERNAL EMAIL Richard, Have you considered using IEAMSXMP? Much safer. Tom Harper Phoenix Software International Sent from my iPhone > On Sep 4, 2024, at 10:36 AM, Richard Zierdt > <richard.zie...@freschesolutions.com> wrote: > > Trying to POST a WAIT ECB in a different address space. I'm getting a 602 > abend: "The target address space control block (ASCB) is incorrect." > > Lots of doc exists about cross memory communication but not finding much > about the POST macro using its ASCB parameter (other than IBM authorized > services). If something else is available, I'm very happy to RTFM. Here's the > scenario: > > 1) Started task A creates a name-token pair containing its ASCB and ECB > addresses (IEANTCR data sharing) > 2) Started task A then WAITs on the ECB > 3) Job B is started and retrieves the name-token pair (IEANTRT) > 4) Job B MODESETs to supervisor, key zero > 5) Job B issues a POST: > POST ECBtokn, ECB address from Token (Name-Token pair) + > ASCB=ASCBtokn, ASCB from Token (Name-Token pair) + > ERRET=PostErrR, + > LINKAGE=BRANCH, + > ECBKEY=0 > ASCBtokn DS A ASCB of started task address space > ECBtokn DS A address of ECB in started task > > 6) Job B abends w/602: > "The target address space control block (ASCB) is incorrect." > LINKAGE=SVC and LINKAGE=SYSTEM were tried and returned the same abend. > Also, the List and Execute macro forms of POST were tried with the same 602 > result. (List / Execute does an SVC call) > > PSW AT TIME OF ERROR 040C1000 813CF198 ILC 2 INTC 0D > NO ACTIVE MODULE FOUND > NAME=UNKNOWN > DATA AT PSW 013CF192 - 00181610 0A0D96A0 20105860 > AR/GR 0: 008FEA64/84000000 1: 00000000/84602000 > 2: 00000000/00000000 3: 00000000/008ECD64 > 4: 00000000/008ECD40 5: 00000000/201004E4 > 6: 00000000/008DBFC8 7: 00000000/00FA7300 > 8: 00000000/013CF5E0 9: 00000000/A0100000 -> Program B > A: 00000000/80000000 B: 00000000/A010041C -> ECB of A > C: 00000000/201002A0 D: 00000000/20100418 -> ASCB of A > E: 00000000/A0100226 F: 00000000/00000000 > > ASCBtokn contains x'00FA7000' > ECBtokn contains x'20100F20' (address of the ECB in the started task) > These values are correct; the name-token pair communication works. > Started task and job are both AMODE 31 RMODE ANY. System is z/OS 02.05. > > Sometimes, IBM macro parameters want the address of the address of. > So, ASCB==A(ASCBTokn) was also tried with the same 602 abend result. > > Salient WAIT code in started task A: > Wait ECB=ECBWTPT, Wait for another address space to + > LINKAGE=SYSTEM POST this ECB > ECBWTPT DC F'0' ECB for Wait-Post > > Thoughts on what's not working? > A working example of POST macro w/ASCB parameter would be appreciated. Or CBT > tape, etc. > 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN -------------------------------------------------------------------------------- This e-mail message, including any attachments, appended messages and the information contained therein, is for the sole use of the intended recipient(s). If you are not an intended recipient or have otherwise received this email message in error, any use, dissemination, distribution, review, storage or copying of this e-mail message and the information contained therein is strictly prohibited. If you are not an intended recipient, please contact the sender by reply e-mail and destroy all copies of this email message and do not otherwise utilize or retain this email message or any or all of the information contained therein. Although this email message and any attachments or appended messages are believed to be free of any virus or other defect that might affect any computer system into which it is received and opened, it is the responsibility of the recipient to ensure that it is virus free and no responsibility is accepted by the sender for any loss or damage arising in any way from its opening or use. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu 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://urldefense.com/v3/__https://my.rocketsoftware.com/RocketCommunity/RCEmailSupport__;!!HaceldhrWm2T3s6H!0aZilwOuWHoDK8U7N4PcPjBFv1Dv8XdQ29A1om6NkVlX_QLz44-EwvKvETarExhpQe7-ECim0dZ3kIkVEyRTWL1e52kgDEUp656JYz086kCJgg$ Unsubscribe from Marketing Messages/Manage Your Subscription Preferences - https://urldefense.com/v3/__http://www.rocketsoftware.com/manage-your-email-preferences__;!!HaceldhrWm2T3s6H!0aZilwOuWHoDK8U7N4PcPjBFv1Dv8XdQ29A1om6NkVlX_QLz44-EwvKvETarExhpQe7-ECim0dZ3kIkVEyRTWL1e52kgDEUp656JYz0SPeZLWw$ Privacy Policy - https://urldefense.com/v3/__http://www.rocketsoftware.com/company/legal/privacy-policy__;!!HaceldhrWm2T3s6H!0aZilwOuWHoDK8U7N4PcPjBFv1Dv8XdQ29A1om6NkVlX_QLz44-EwvKvETarExhpQe7-ECim0dZ3kIkVEyRTWL1e52kgDEUp656JYz0z-PVBbA$ ================================ 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN 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 lists...@listserv.ua.edu with the message: INFO IBM-MAIN