Use the Catalog Search process (can be done in Rexx, example in SAMPLIB) looking for any VOLSER starting with “2” or “3” or whatever your tape volume serials can be, output the DSN’s for DELETE NOSCRATCH. Use “*” (or maybe “**”?) as the DSN filter.
Depending on the size of your catalog it could take quite a while to run, but you should only need to do it once. Test first using a known HLQ that has DSN’s cataloged to tape volumes, then the final run with “*” for the DSN filter. Peter From: IBM Mainframe Discussion List <[email protected]> On Behalf Of Richard McIntosh Sent: Tuesday, August 20, 2024 3:00 PM To: [email protected] Subject: Re: [External] : Re: How to cleanup old datasets Yes, but how to identify all of them. The old tape volsers are 2xxxxx and 3xxxxx. Lots of different HLQs. -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@ LISTSERV. UA. EDU> On Behalf Of Seymour J Metz Sent: Tuesday, Yes, but how to identify all of them. The old tape volsers are 2xxxxx and 3xxxxx. Lots of different HLQs. -----Original Message----- From: IBM Mainframe Discussion List <[email protected]<mailto:[email protected]>> On Behalf Of Seymour J Metz Sent: Tuesday, August 20, 2024 1:45 PM To: [email protected]<mailto:[email protected]> Subject: [External] : Re: How to cleanup old datasets I'd suggest using access method services (IDCAMS) DELETE NOSCRATCH. -- ________________________________________ From: IBM Mainframe Discussion List <[email protected]<mailto:[email protected]>> on behalf of Richard McIntosh <[email protected]<mailto:[email protected]>> Sent: Tuesday, August 20, 2024 2:10 PM To: [email protected]<mailto:[email protected]> Subject: How to cleanup old datasets I have a bunch of old tape datasets that are still cataloged, but the tapes don't exist anymore. Looking for something to help in identifying all and create JCL to uncataloged them. Thanks Richard -- This message and any attachments are intended only for the use of the addressee and may contain information that is privileged and confidential. If the reader of the message is not the intended recipient or an authorized representative of the intended recipient, you are hereby notified that any dissemination of this communication is strictly prohibited. If you have received this communication in error, please notify us immediately by e-mail and delete the message and any attachments from your system. ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to [email protected] with the message: INFO IBM-MAIN
