On Mon, 8 Feb 2010 06:49:19 -0700, Steve Comstock <[email protected]> wrote:
> >User C programs and LE assembler programs that look like C programs >(member=3), would need to handle all the EINTR redrive looping for >SA_RESTART, if they invoke kernel services directly. > >There are also kernel services that can cause trouble for LE (BPX1MSD, >BPX1MSS, for example), so there is no way to give a green light to >directly call any kernel service at anytime. > I did not know this.... thanks. > >* Can you run this program from a shell script that > sets up STEPLIB with all the libraries you want > to run from? (Of course, if you have two members > with the same name in different libraries, this > would be a problem) > Unfortunately, the member name is always the same. The same program, but from different installations, needs to be started multiple times. >* Can you replace the call to BPX1EXM with a comparble > C function? The IBM response to me seemed to imply > there is always a corresponding C function available. > The C runtime library has only the exec-family of functions. The documentation says they require the program that is to be started to reside in the HFS. I have been searching for some time for a way to 'exec' a program that is not in the HFS but in a load library, and BPX1EXM looked like the way to go. And, except for this STEPLIB thing, it does appear to do exactly what I need. I guess I could work around this problem by using execle(), which has an environment parameter in which I can set STEPLIB. It could start a little program that is in the HFS and that simply does a call to BPX1EXM. But that is far from elegant... I think I will first try and see if I can trick execle() to start an MVS program in some way, as BPX1EXM seems to be a dead end.... Thank you for your response, Etienne ---------------------------------------------------------------------- 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

