Re: Re: In over my head again...

Gerhard Postpischil <[email protected]>
Newsgroups gmane.comp.emulators.turnkey-mvs
Message-ID <[email protected]>
On 4/26/2010 7:18 PM, ScottC wrote:
> Now, I have a question... Is there a way to force USER01 datasets to
> first attempt to be allocated on Volume USER01 by default instead of
> always allocating on PUB002 by default?

There several ways, ranging from klutzy to elegant.

The simplest is to have USER01 as the only volume with the 
STORAGE attribute.

More tedious is to do a (partial) sysgen and define, e.g., USER 
as a unit name, and then do all your allocations with UNIT=USER 
(but this is equivalent to using UNIT=141 which is simpler). I 
suspect you want the allocation for TSO as well as batch?

Another method, for batch jobs, is to use the IEFUJV or a 
JES2/JES3 exit to inspect the JCL, and add the USER01 serial to 
the request.

The elegant, and most educational <g>, method is to write an 
allocation exit. When allocation (SVC 99) is invoked without a 
volume serial, and is for a permanent data set, change the request.

With the exception of the first, I've done all of these on real 
world systems. For the first, I had a system with no storage 
volumes, and exits that replaced non-specific requests with 
specific ones depending on the account and user id.

Gerhard Postpischil
Bradford, VT
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.