John, a "relink" is not an option as I would like to enable/disable my function dynamically (at least from IPL to IPL) and some of the load modules are third party software - ie. I do not want to change these!
Regards Jon -----Ursprüngliche Nachricht----- Von: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] Im Auftrag von McKown, John Gesendet: Montag, 29. Januar 2007 15:21 An: [email protected] Betreff: Re: Getting control > -----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 ---------------------------------------------------------------------- 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

