> -----Original Message-----
> From: IBM Mainframe Discussion List 
> [mailto:[email protected]] On Behalf Of Hansen, Dave L - Eagan, MN
> Sent: Wednesday, June 06, 2012 11:34 AM
> To: [email protected]
> Subject: Exclusive ENQ on dataset owned (SHR) by Started Task?
> 
> Group,
> 
>   We are running z/OS V1R13 and a product called VPS.  I 
> wrote some code to ADD, UPDATE and DELETE members of a PDS.  
> It worked fine until VPS came up.
>   I see that the VPS started task "OWNS SHR" the dataset.
>   I need to allocate a dataset exclusively (EXCL/DISP=MOD) to 
> do a delete from REXX (or batch).
>   I can go out by hand using 3.4 and delete all I want from 
> the dataset while VPS is up.
>   I asked the vendor if they can FREE the dataset after 
> program initialization.  Waiting to hear back.

Have you tried putting a FREE=CLOSE on the DD statement containing the PDS? 

> 
> 
> Q).  What is the best way to delete a PDS member while the 
> started task has it allocated DISP=SHR? 

I don't know the "best" way. Perhaps the simplest for most would be to run TSO 
in batch, invoke ISPF and run a REXX program which uses the LMMDEL function:
http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/ISPZSG90/2.36.5.1


IMO, the "best" way is to use assembler and either a DESERV or STOW DELETE 
function.

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D570/2.2.20.1

http://publibz.boulder.ibm.com/cgi-bin/bookmgr_OS390/BOOKS/DGT2D570/2.2.55

> 
> 
>    Thanks in advance,  Dave
> 
> 
> Dave Hansen 
> Eagan Software Systems Branch 
> 651-406-1208 
> [email protected] 


--
John McKown 
Systems Engineer IV
IT

Administrative Services Group

HealthMarkets(r)

9151 Boulevard 26 * N. Richland Hills * TX 76010
(817) 255-3225 phone * 
[email protected] * www.HealthMarkets.com

Confidentiality Notice: This e-mail message may contain confidential or 
proprietary information. If you are not the intended recipient, please contact 
the sender by reply e-mail and destroy all copies of the original message. 
HealthMarkets(r) is the brand name for products underwritten and issued by the 
insurance subsidiaries of HealthMarkets, Inc. -The Chesapeake Life Insurance 
Company(r), Mid-West National Life Insurance Company of TennesseeSM and The 
MEGA Life and Health Insurance Company.SM

 

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

Reply via email to