On Fri, 13 Oct 2017 00:17:40 +0000, Frank Swarbrick wrote:
>
>//SHELL  JOB NOTIFY=&SYSUID,REGION=2000M
>//UNIXSH  EXEC PGM=BPXBATCH,PARMDD=PARMSIN
>//FW      DD DISP=SHR,DSN=DVFJS.FW
>//PARMSIN DD *
>SH /u/dvfjs/src/fw
>/*
>//STDIN   DD DUMMY
>//STDOUT  DD SYSOUT=*
>//STDERR  DD SYSOUT=*
>//STDENV  DD DUMMY
>//
>
>Does the Unix environment for BPXBATCH not have access to the JCL DD?
> 
Right.  BPXBATCH starts a new address space which inherits none of the DDs.
BPXBATSL runs in the job step address space, but has onerous APF entanglements.

I don't know that BPXWUNIX is better.

The cumbersome alternative is to use Rexx; BPXWDYN('alloc dd(FW) ...'), then
address SYSCALL spawn with BPX_SHAREAS=MUST.  Details are left as an
exercise for the student.  The MVS-OE forum might be helpful.

-- gil

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to