On Mon, Oct 16, 2017 at 12:27 PM, Paul Gilmartin < [email protected]> wrote:
> On Mon, 16 Oct 2017 08:09:34 +0200, Peter Hunkeler wrote: > > > >My thoughts have been to first spawn() to a glue routine to get the local > process and then to exec() to /bin/sh. Another way be to invoke a shell > script making sure _BPX_SPAWN_SCRIPT=YES is present. > > > Doesn't exec(), like fork(), create a new execution environment, discarding > DDNAME allocations? > Looks like it according to https://www.ibm.com/support/knowledgecenter/SSLTBW_2.3.0/com.ibm.zos.v2r3.bpxb100/exc.htm Characteristics and restrictions 1. The exec service dynamically inserts into a job a new job step that has no allocations associated with it, with the exception of the MVS data sets that may be built into the STEPLIB environment for the new process image. > > -- gil > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to [email protected] with the message: INFO IBM-MAIN > -- I just child proofed my house. But the kids still manage to get in. Maranatha! <>< John McKown ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
