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: 14
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: 86
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: 1505
Location: Chennai

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

Active User


Joined: 01 Sep 2015
Posts: 141
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 REXX to get the all datasets name parasmalik20 CLIST & REXX 5 Tue Jul 18, 2017 9:10 pm
No new posts finding delayed job/s in OPC jzhardy IBM Tools 0 Mon May 29, 2017 9:04 am
This topic is locked: you cannot edit posts or make replies. SDSF multiple spool datasets extracte... PJAlarcon CLIST & REXX 1 Fri Apr 21, 2017 10:50 pm
No new posts Edit large number of datasets (QSAM) zh_lad TSO/ISPF 3 Tue Apr 04, 2017 6:08 pm
No new posts DUMP DATASETS VS TRACE DATASETS! lind sh CICS 4 Tue Dec 06, 2016 11:31 pm


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