David, Yes DCOLLECT uses the DASD VTOCs vs the Catalog. Have scanned that as well to verify no uncatalogued DSNs. Ultimately, I converted all our uncatalogued DSNs (and old JOBs) to use cataloged DSNs and disallowed uncatalogued ones. The shop was a JES3 shop (and had been using it from the beginning of JES3), and were using uncatalogued DSNs for many System Specific DSNs. What a mess.
_______________ Al Ferguson | mailto:afergu...@neptunescove.org Milwaukee, WI USA | http://www.neptunescove.org Dulcius ex Asperis > On May 16, 2023, at 09:01, David Spiegel > <00000468385049d1-dmarc-requ...@listserv.ua.edu> wrote: > > Hi Al, > "...You need to run through VTOC entries to find any datasets that may be > uncatalogued ..." > > For Uncatalogued Datasets, you can use: > - DCOLLECT by VOLSER )with masking) > - VTOC CP (CBT File 112) with masking. (If you want JCL samples, please PM > me). > > Regards, > David > > On 2023-05-16 09:45, Al Ferguson wrote: >> Mike, >> >> Another solution might be to use a REXX EXEC that is in CBT FILE960, called >> LISTDS (or maybe LISTDSI). It uses the Catalog Search Interface, and >> depending on the options it can look for Files and Aliases at the same time. >> The CSI takes various parameters, documented in the help section, to search >> for: >> VSAM Clusters & components >> GDGs >> ALIAS >> Datasets >> >> It can provide quite a bit of detail on the dataset. >> >> The downside of either the LISTDSI TSO Function, or the CSI, is they only >> return information on CATALOGed Datasets. You need to run through VTOC >> entries to find any datasets that may be uncatalogued (I did a similar >> project when cleaning up a shops security database in the past, and they >> were big users of uncatalogued datasets!). >> >> _______________ >> >> Al Ferguson | mailto:afergu...@neptunescove.org >> Milwaukee, WI USA | http://www.neptunescove.org/ >> >> Dulcius ex Asperis >> >>> On May 16, 2023, at 07:57, Bob Bridges <robhbrid...@gmail.com> wrote: >>> >>> Mike, you've succinctly restated my goal in English. What I'm asking is >>> how to achieve the goal in LISTCATese. >>> >>> In the end I followed the advice of a few others, and did the LISTCAT >>> twice, once with ENT then again with LEV; that tells me about the alias AND >>> any datasets. Since this was a cleanup effort, I also (which has nothing >>> to do with the below question) pulled info from Top Secret about each >>> associated ACID, ie whether it existed and if so when it was last used. >>> That gave me a nice neat list of what needs to be cleaned up and what >>> should be left alone. >>> >>> --- >>> Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313 >>> >>> /* The Piper Cub is the safest airplane in the world; it can just barely >>> kill you. -Attributed to Max Stanley, Northrop test pilot */ >>> >>> -----Original Message----- >>> From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of >>> Mike Schwab >>> Sent: Monday, May 15, 2023 19:32 >>> >>> List datasets with 'HLQ.**'. >>> >>> --- On Fri, May 12, 2023 at 10:24 AM Bob Bridges <robhbrid...@gmail.com> >>> wrote: >>>> I'm looking at a profile in Top Secret with a bunch of permissions to >>>> user HLQs that I suspect are no longer around, some of them at least. >>>> I plan to write a REXX that'll identify the ones for which there are >>>> no datasets, or only a TSO alias. >>>> >>>> I thought to use LISTCAT for that, but I'm running into a problem. I >>>> don't use LISTCAT all that often, but I thought this would work: >>>> >>>> LISTCAT LEVEL(XXX) >>>> >>>> That nets me the same message whether or not an alias is present: >>>> >>>> ENTRY XXX. NOT FOUND+ >>>> ** XXX NOT LISTED >>>> LASTCC=4 >>>> ** VSAM CATALOG RETURN CODE IS 8 >>>> >>>> But I want to distinguish whether or not there's an alias. Ok, so I >>>> should add the ALIAS argument, right? >>>> >>>> LISTCAT LEVEL(XXX) ALIAS >>>> >>>> But that gets me the exact same response, whether or not an alias is >>>> present. What am I missing, here? >>>> >>>> And when I test that command on my own ID - I have both a TSO alias >>>> and some datasets - the screen blinks and comes back without giving me >>>> any response at all! Most strange. Am I broken? Is LISTCAT broken? >>>> Surely it's something basic I've misunderstood about LISTCAT. >>> ---------------------------------------------------------------------- >>> For IBM-MAIN subscribe / signoff / archive access instructions, >>> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN >>> >> >> ---------------------------------------------------------------------- >> For IBM-MAIN subscribe / signoff / archive access instructions, >> send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > > ---------------------------------------------------------------------- > For IBM-MAIN subscribe / signoff / archive access instructions, > send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN > ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN