Yes, I quickly found that out. As I was once an ISV software programmer, I am well aware of not being able to guarantee you are "the one" using the field, so I quickly abandoned that idea.
Earlier in this thread Rolf Ernst also pointed out the TCBFSA hack, which works very well (especially when the storage address is already being passed as a parameter in R1!). TCBFSA points to a key 8 save area at the top of the task's SA chain, so no storage violations if you choose to use it. And yes, name/token services is the "right" answer. Hacks can always be compromised by software upgrades. Peter -----Original Message----- From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] Sent: Thursday, July 21, 2005 10:15 AM To: IBM-MAIN@BAMA.UA.EDU Subject: Re: Supported interface to set/retrieve TCBUSER field NON-authori zed? > The subject says it all, I am trying to find out if there is a > supported+documented interface to set and retrieve the > TCBUSER word from a > NON-authorized program WITHOUT writing any authorized code. > > I tried a simple ST instruction, but that's an 0C4 storage violation. > > TIA for any RTFM/info/etc. you can provide. z/OS 1.4 is the > environment. Dream on. The TCB is key zero (LSQA) so you need to be in key zero to modify it. BUT! TCBUSER is one of the all time bad ideas, along with CVTUSER. You could never count on being "the user" so you could never be sure you had the right to store/replace whateever was there. And since everyone is in the same boat nobody uses it. If you're looking for a place to hang things, use name/token services. CC _ This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [EMAIL PROTECTED] with the message: GET IBM-MAIN INFO Search the archives at http://bama.ua.edu/archives/ibm-main.html