Portal | Manuals | References | Downloads | Info | Programs | JCLs | Master the Mainframes
IBM Mainframe Computers Forums Index
 
Register
 
IBM Mainframe Computers Forums Index Mainframe: Search IBM Mainframe Forum: FAQ Memberlist Usergroups Profile Log in to check your private messages Log in
 

 

Finding unreferenced datasets without DFHSM

 
Post new topic   Reply to topic    IBMMAINFRAMES.com Support Forums -> JCL & VSAM
View previous topic :: :: View next topic  
Author Message
Alan Playford

New User


Joined: 22 Aug 2012
Posts: 8
Location: UK

PostPosted: Tue Jul 12, 2016 9:07 pm    Post subject: Finding unreferenced datasets without DFHSM
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: 65
Location: India

PostPosted: Tue Jul 12, 2016 9:27 pm    Post subject:
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: 8593
Location: Back in jolly old England

PostPosted: Wed Jul 13, 2016 12:47 pm    Post subject:
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: 1445
Location: Azeroth

PostPosted: Wed Jul 13, 2016 4:47 pm    Post subject:
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.
https://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 User


Joined: 31 Dec 2009
Posts: 437
Location: London

PostPosted: Mon Aug 15, 2016 12:45 pm    Post subject:
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

New User


Joined: 01 Sep 2015
Posts: 96
Location: Switzerland

PostPosted: Mon Aug 15, 2016 4:57 pm    Post subject:
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    IBMMAINFRAMES.com Support Forums -> JCL & VSAM All times are GMT + 6 Hours
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Author Forum Replies Posted
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm
No new posts Single COPY CICS TS datasets and when... Kyle Carroll CICS 2 Tue Oct 11, 2016 9:47 pm
No new posts Finding repetead surnames in differen... blackjack202 DFSORT/ICETOOL 7 Tue Jun 07, 2016 7:42 pm
No new posts BDW in VB datasets harisukumaran JCL & VSAM 5 Sat May 28, 2016 9:46 am
No new posts How to sync memebers in some datasets... Lord.of.Wind Compuware & Other Tools 2 Thu Apr 21, 2016 12:48 pm


Facebook
Back to Top
 
Mainframe Wiki | Forum Rules | Bookmarks | Subscriptions | FAQ | Tutorials | Contact Us