McKown, John wrote:
-----Original Message-----
From: IBM Mainframe Discussion List
[mailto:[email protected]] On Behalf Of Ted MacNEIL
Sent: Wednesday, August 05, 2009 11:58 AM
To: [email protected]
Subject: Re: 2 Identical STC Running at the Same Time
//LOCK DD DISP=OLD,DSN=LOCK.stcname,UNIT=SYSDA,VOL=REF=SYS1.NUCLEUS
The DSN need not exist because it will never be opened.
That doesn't make any sense.
Datasets are pre-allocated, when specified in the JCL,
regardless of whether or not you ever open them.
If they aren't there, when OLD is specified, you get a JCL error.
-
Too busy driving to stop for gas!
Guess again. What I have shown will work. I have done it many times. Try it.
The following will also work even if the DSN does not exist:
//VOLSER DD DSN=SOME.JUNK.DSN,DISP=OLD,
// UNIT=SYSDA,VOL=SER=volser
replacing "volser" with _any_ online DASD volume serial. It can be SMS or
non-SMS. So long as the DD name is not opened by the application, no problem will occur.
--
John McKown
Systems Engineer IV
That's correct, and the reason it works is: if you
provide both the unit and volser, the catalog is
not searched: allocation assumes the data set is on
the specified volume.
Kind regards,
-Steve Comstock
The Trainer's Friend, Inc.
303-393-8716
http://www.trainersfriend.com
z/OS Application development made easier
* Our classes include
+ How things work
+ Programming examples with realistic applications
+ Starter / skeleton code
+ Complete working programs
+ Useful utilities and subroutines
+ Tips and techniques
==> Ask about being added to our opt-in list: <==
==> * Early announcement of new courses <==
==> * Early announcement of new techincal papers <==
==> * Early announcement of new promotions <==
----------------------------------------------------------------------
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