> -----Original Message----- > From: IBM Mainframe Discussion List > [mailto:[EMAIL PROTECTED] On Behalf Of Jon Renton > Sent: Monday, January 29, 2007 7:23 AM > To: [email protected] > Subject: Getting control > > > Hello, > > I am looking for a way to prevent users calling certain load modules > directly. Instead I would like my module to get control. This > module can > then perform certain tasks before passing control to the user > requested > processing module. > > Here as a simple flow: > > - User calls module "A" > - My module "B" gets control instead (without the user noticing this) > - After internal processing "B" calls "A" > > Is there a way to achieve this using documented interfaces > (or otherwise)? > > Many thanks in advance > > Regards > Jon
Bottom line: No. My usual method is to do a fancy "relink" and insert my CSECT into the load module (program object) as the initial entry point. Now, the real techie head will say that I could "front end" some SVCs such as LOAD, LINK, XCTL, and maybe others (Program Fetch itself?) and dynamically insert my code (CA seems to love to do this sort of thing), but this would be very difficult and error prone. -- John McKown Senior Systems Programmer HealthMarkets Keeping the Promise of Affordable Coverage Administrative Services Group Information Technology The information contained in this e-mail message may be privileged and/or confidential. It is for intended addressee(s) only. If you are not the intended recipient, you are hereby notified that any disclosure, reproduction, distribution or other use of this communication is strictly prohibited and could, in certain circumstances, be a criminal offense. If you have received this e-mail in error, please notify the sender by reply and delete this message without copying or disclosing it. ---------------------------------------------------------------------- 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

