Rex,

If you only have a single disk pack of data sets to process you could
use the data set list option in TSO / ISPF and specify only the vol-ser
of the volume in question. This will list all data sets on the volume if
they are cataloged or not. You can then delete any data set you so
desire. If the data set is cataloged on this volume, the delete
operation will also uncatalog the data set for you. 

If you want to do this programmatically, run an IEHLIST LISTVTOC of the
volume and then write a REXX routine to parse the output of the IEHLIST
SYSPRINT data set and based on whatever criteria you have, issue the
delete request from within your REXX program.

HITACHI 
 DATA SYSTEMS

Raymond E. Noal
Lab Manager, San Diego Facility
Office: (858) 537 - 3268
Cell:   (858) 248 - 1172


-----Original Message-----
From: IBM Mainframe Discussion List [mailto:[EMAIL PROTECTED] On
Behalf Of Pommier, Rex R.
Sent: Monday, January 30, 2006 11:50 AM
To: IBM-MAIN@BAMA.UA.EDU
Subject: Basic question on deleting datasets

Hi.

I'm afraid I'm in a "can't see the forest because of the trees"
situation which probably has a very easy answer that I can't see.

I have a disk pack that I need to get a large subset of the datasets off
it as well as uncataloged.  Is there some way using IDCAMS or DFSMSdss
to accomplish this using wildcards so I don't have to list each dataset
separately?  IDCAMS apparently only allows me to use a single-qualifier
wildcard which won't do it.  

Unless somebody has a better idea as how to proceed here.  The situation
is that we have a training system here that is a clone of our
production.  On a semi-regular basis we are requested to refresh the
training system.  The process is to delete the training system datasets
then use DFSMSdss COPY to copy the datasets from production to training.
I have tried just using DFSMSdss COPY with REPlace but apparently the
REPlace parameter of DSS COPY doesn't work with the RENameUnconditional
because DSS complains about the output datasets already being there. 

I don't want to have to list all the datasets individually in IDCAMS
DELETE statements because that will be a maintenance nightmare.

Environment is z/OS 1.4. 

What am I missing?

Rex

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

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