IBM Mainframe Forum Index
 
Register
 
IBM Mainframe Forum Index Mainframe: Search Log in to check your private messages Log in
 

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: 40
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: 8793
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: 1689
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.
Use [URL] BBCode for Links
Back to top
View user's profile Send private message
Pete Wilson

Active User


Joined: 31 Dec 2009
Posts: 488
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: 397
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 All times are GMT + 6 Hours
Forum Index -> JCL & VSAM
Page 1 of 1

 

Search our Forum:

Similar Topics
Topic Forum Replies
No new posts can someone please help me in finding... IBM Tools 9
This topic is locked: you cannot edit posts or make replies. Finding the age of the person COBOL Programming 1
No new posts Finding Esoteric Unit Names Programma... All Other Mainframe Topics 2
No new posts Compare Two datasets and Override Mat... DFSORT/ICETOOL 7
No new posts Related to performing validation of f... DFSORT/ICETOOL 19

Back to Top