Dave,

At R1.13 z/OS you can use the DEL 'MYDSN(member)' in rexx.  Also note, the 
member can contain a mask so if you wanted to delete all members that being 
with A you can issue

DEL 'MYDSN(A*)' and it should remove all the members that being with A.

If you allocate MYDSN with SHR REUSE in your REXX I would think you could 
delete members.  I have not tried this. 

Or, if you have not done so, you can join the TSO-REXX newsgroup and query 
there.  I am thinking that the ISPF LM services may be your friend in this case.

Lizette


>
>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.
>
>
>Q).  What is the best way to delete a PDS member while the started task has it 
>allocated DISP=SHR? 
>
>
>   Thanks in advance,  Dave
>
>

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

Reply via email to