On Fri, 5 Aug 2016 21:20:36 -0400, Thomas David Rivers wrote:
>
> Why would DYNALLOC hand me back a DD name from a different allocation
> in the DALRTDDN area, instead of making up a new one?
>
Damn!
BTDT
GTTS
DLI
NGDIA!
Has to do with the reusable character of an allocation, described somewhere
in SVC99 doc, which I didn't understand.
Byzantine circumvention:
ALLOCATE witn PATH and DALRTDDN. I believe UNIX allocations are never
reusable.
FREE the returned DDNAME.
ALLOCATE your PDS specifying that DDNAME
Do *not* use DUMMY, DSN(NULLFILE) or PATH('/dev/null'). Any of those is apt
to reuse an existing DUMMY allocation.
I don't believe there's a timing hazard; DYNALLOC will go to the end of the name
space and wrap before it reuses the DDNAME you got.
The likelihood that the DDNAME space is full and a collision occurs is
negligible.
There may be a supported way of marking the previous allocation non-reusable.
Why was it designed this way? Cui bono?
-- gil
----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN