Using "/DD:" when running BPXBATCH?  (the shell runs in a separate address
space)

If you use a tool that runs the shell script in the same address space,
then you can use either a DD or a DSN (dynamic allocation in the same
address space won't conflict with the initiator ENQ since it is the same
address space).

Kirk Wolf
Dovetailed Technologies
http://dovetail.com

PS> the mvs-oe forum used to be nearly completely dedicated to problems
like this, search the archives ;-)

On Mon, Mar 18, 2013 at 9:20 AM, Paul Gilmartin <[email protected]>wrote:

> On Mon, 18 Mar 2013 15:01:34 +0100, Michael Klaeschen wrote:
>
> >In JES3 this works as designed: With MDS [JES3 Main Device Scheduler], the
> >resources (data sets, devices, and volumes) that a job requires are
> >already set up when the job is passed to MVS for execution. (cmp. chapter
> >4.3.1.2 of JES3 Initialization and Tuning Guide). JCL DISP=SHR indicates
> >that the data set exists before this step (cmp MVS JCL Reference).
> >Assuming TEST.DATASET does not exist prior to job submit. Then, JES3 MDS
> >has to allocate the data set before the job starts in order to fulfill
> >DISP=SHR. So, did you try adding STEP00 with IEFBR14 to allocate
> >DSN=TEST.DATASET with DISP=(NEW,CATLG,DELETE) instead of "predefining"
> >(how exactly??) it in the shell script?
> >
> Still won't work as long as the "cp" runs in a different address space.
> Kirk's suggestion is promising, but proliferates prerequisites.
>
> I thought MDS would fail the job if a required data set did not exist.
> So, I conclude that Monika is using JES2.
>
> Can Monika try a separate IEFBR14 step between STEP01 and STEP02?
>
> Using the "//DD..." construct as an argument to "cp" is reported to
> work, but is undocumented and unsupported.
>
> -- gil
>
> ----------------------------------------------------------------------
> For IBM-MAIN subscribe / signoff / archive access instructions,
> send email to [email protected] with the message: INFO IBM-MAIN
>

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

Reply via email to