View previous topic :: View next topic
|
Author |
Message |
tjk3030
New User
Joined: 18 Mar 2006 Posts: 22
|
|
|
|
I've been given the task of cleaning of datasets in our test region. I need something that will give me a listing of datasets using wildcards in the hlqf,
something like tjk.test.*. Its my understanding that we have HUGE nbr of datasets, I'm hoping to get a simple list ing to break out somehow and tell the appropriate people - delete this now!
Any ideas? |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
ISPF option 3.4 should do the trick. |
|
Back to top |
|
|
tjk3030
New User
Joined: 18 Mar 2006 Posts: 22
|
|
|
|
I guess I wasn't clear enough. I need to create a batch job giving me a list of datasets, created date date in a flat file format. I need to send it to various groups and have them delete old data sets. |
|
Back to top |
|
|
superk
Global Moderator
Joined: 26 Apr 2004 Posts: 4652 Location: Raleigh, NC, USA
|
|
|
|
I would think you'd already know this, but you may want to use either the LISTCAT function of IDCAMS (you'll have to code your own filtering logic) or DFSMSdss SAR (PGM=ADRDSSU).
Another option is to code a program that would use the ISPF Services LMDINIT and LMDLIST in batch to generate the same type of list as ISPF Option 3.4 in the foreground. |
|
Back to top |
|
|
sril.krishy
Active User
Joined: 30 Jul 2005 Posts: 183 Location: hyderabad
|
|
|
|
Hi,
The simple option which we are doing in our shop is to use the 3.4 option with wild card.Then use the SAVE command where all the file names,dataset(s) will be stored under the USERID.. data set.Then use SORT commads to get the info like the space occupied the each and every datset etc..
I also have a code to geerate using a BATCH JOB,But it will take a lot of time (CPU) to generate the report.This job is a combination of Rexx and SORT.Please give your private mail ID so that I can send that one to you if you are interseted.
Thank you
krisy |
|
Back to top |
|
|
|