Path: utzoo!mnetor!uunet!husc6!ncar!ames!pasteur!ucbvax!ean.ubc.ca!lebaron%tel.inrs.CDN From: lebaron%tel.inrs.CDN@ean.ubc.ca (Gregory LeBaron) Newsgroups: comp.os.vms Subject: (none) Message-ID: <95*lebaron@tel.inrs.cdn> Date: 16 Mar 88 14:47:00 GMT Sender: usenet@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 24 >> I am looking for a system service or run-time library routine that >> will allow me to execute a second image. I want to do this in such a >> way that the flow of control will pass entirely to the second image, >> and will return to the first image at the calling point after the >> second image completes. Neither CREPRC nor LIB$SPAWN seem to do this, >> which makes sense since their purpose is to create another process >> altogether. I just want the SAME process to start executing a second >> image. I'm sure I'm overlooking something obvious... >LIB$DO_COMMAND >LIB$RUN_PROGRAM > -- Jerry I missed the first part of this discussion but there is a RTL routine which might be appropriate: LIB$FIND_IMAGE_SYMBOL - read universal symbols from a shareable image file and dynamically activate a shareable image into the P0 address space of a process There's an interesting discussion in the column VMS VIEWS, Digital Review Feb 22 1988 (pg 86) Greg lebaron@tel.inrs.cdn