On Mon, 29 Jan 2007 15:40:20 +0100 Jon Renton <[EMAIL PROTECTED]> wrote:
:>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! You can use some CSA resident bit to determine if you are active or not, and just pass thru if not "enabled". To do it sort of dynamically for the life of an IPL, if you can remove them from steplib - dynamically load them into CSA and put in your front-end. Of course, unless the client program requires APF this will not provide security since the user code can do the function directly or skip the front-end. :>-----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 :>> 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)? :>Bottom line: No. False. :>My usual method is to do a fancy "relink" and insert my CSECT into the :>load module (program object) as the initial entry point. A good approach, if fits the requirements. :>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. Becomes less and less difficult and less and less error prone, the more that one does it. Climbing a rock face is quite difficult and error prone - do it a few times and ones view of the activity changes. -- Binyamin Dissen <[EMAIL PROTECTED]> http://www.dissensoftware.com Director, Dissen Software, Bar & Grill - Israel Should you use the mailblocks package and expect a response from me, you should preauthorize the dissensoftware.com domain. I very rarely bother responding to challenge/response systems, especially those from irresponsible companies. ---------------------------------------------------------------------- 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

