At 19:13 -0500 on 07/08/2008, Paul Gilmartin wrote about Re: want to read a dataset in use:

But beware, if in a subsequent step your JCL references that
data set, even with DISP=SHR, the job's inial TIOT will have an
entry for it, and creating the data set dynamically will upgrade
the ENQ to EXC, and the data set will remain inaccessible
outside that job until that later step finishes.

(Or so I've been told.)

-- gil

Thinking outside the box, what happens if I define an ALIAS for the top level index (INDEX2 as an alias of INDEX1) or the full dataset name (INDEX.FILE2 as an alias of INDEX.FILE1) and try to access via the alias'ed name. Will it spot the duplicate usage or do the ENQ on the Alias'ed name and thus allow me o get away with it? Also, if I am APF authorized, I can allocate the dataset bypassing the ENQ and thus open it to use to write a duplicate/cloned copy which can then be scanned in lieu of the original.

----------------------------------------------------------------------
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

Reply via email to