IBM Mainframe Forum Index
 
Log In
 
IBM Mainframe Forum Index Mainframe: Search IBM Mainframe Forum: FAQ Register
 

Finding unreferenced datasets without DFHSM


IBM Mainframe Forums -> JCL & VSAM
Post new topic   Reply to topic
View previous topic :: View next topic  
Author Message
Alan Playford

New User


Joined: 22 Aug 2012
Posts: 43
Location: UK

PostPosted: Tue Jul 12, 2016 9:07 pm
Reply with quote

Guys,
I wish to specify some search criteria to find unreferenced datasets, as part of of a clean-up campaign, against certain disk volumes.
We don't have DFSMSHSM and therefore it is up to individuals to perform their own housekeeping. Of course, that never happens!

So, in your opinions, what is the best way to achieve this using standard IBM utilities (DFSMSdss etc)?
This can be either via batch job (preferred) or online ISPF (ISMF?) if you wish?

A sample of how to do it would be much appreciated!

Regards,
Al
Back to top
View user's profile Send private message
Abid Hasan

New User


Joined: 25 Mar 2013
Posts: 88
Location: India

PostPosted: Tue Jul 12, 2016 9:27 pm
Reply with quote

Hello Al,

See if this helps.
Back to top
View user's profile Send private message
expat

Global Moderator


Joined: 14 Mar 2007
Posts: 8797
Location: Welsh Wales

PostPosted: Wed Jul 13, 2016 12:47 pm
Reply with quote

What DASD management software do you have installed ?

All of that sort of thing should be automated as part of the DASD management strategy. Adding it to SMS should be a doddle.
Back to top
View user's profile Send private message
vasanthz

Global Moderator


Joined: 28 Aug 2007
Posts: 1693
Location: Tiruppur, India

PostPosted: Wed Jul 13, 2016 4:47 pm
Reply with quote

Quote:
I wish to specify some search criteria to find unreferenced datasets,

Hello,
You could run a IDCAMS DCOLLECT and look for 'D' type records. They have last referenced dates for datasets. That should be a starting point to identify unreferenced datasets.
www.ibm.com/support/knowledgecenter/SSLTBW_2.1.0/com.ibm.zos.v2r1.idai200/recstr.htm
Back to top
View user's profile Send private message
Pete Wilson

Active Member


Joined: 31 Dec 2009
Posts: 502
Location: London

PostPosted: Mon Aug 15, 2016 12:45 pm
Reply with quote

//STEP1 EXEC PGM=ADRDSSU
//SYSPRINT DD *
//X DD DUMMY
//SYSIN DD *
DUMP ODD(X) ALLE OPT(4) PURGE DELETE -
DS(INC( -
data.set.name.or mask -
) -
BY(REFDT,LE,*-35) ) -
/* the above selects dataset matching the dsname masks unreferenced */ -
/* for 35 or more days prior to today */ -
/* then you can specify individual volsers ...or a Storgrp name.. */ -
IDY( -
(volser1) -
(volser2) -
)

STORGRP(sgname)
Back to top
View user's profile Send private message
Willy Jensen

Active User


Joined: 01 Sep 2015
Posts: 483
Location: Denmark

PostPosted: Mon Aug 15, 2016 4:57 pm
Reply with quote

The VTOC command from CBTTAPE.ORG. Ask for a report including the refdate, filter the report.
Back to top
View user's profile Send private message
View previous topic :: :: View next topic  
Post new topic   Reply to topic View Bookmarks
All times are GMT + 6 Hours
Forum Index -> JCL & VSAM

 


Similar Topics
Topic Forum Replies
No new posts FTP datasets to server CLIST & REXX 13
No new posts how to list the number of backup data... JCL & VSAM 3
No new posts Unable to retrieve Datasets Names usi... CLIST & REXX 20
No new posts REXX allocated datasets in JCL CLIST & REXX 9
No new posts Copying large number of datasets to m... JCL & VSAM 17
Search our Forums:

Back to Top