Ah, ENT, that's what I was forgetting. Thanks, all. And I now see that when they created my ID a few years ago, they did it without creating a TSO alias for my ID! I don’t think I've ever seen that done before. It means all my datasets are taking up an entry each in the master catalogue, right? Not that I know much about catalogues. So LISTCAT LEV lists all my datasets, but LISTCAT ENT comes up empty for me.
Steve, I wasn't sure which "both" you meant, but experimentation seems to demonstrate that LEV gets me the DSNs and ENT gets me the alias, and ne'er the twain shall meet no matter which content arguments I use. Seems dumb, but ok. --- Bob Bridges, robhbrid...@gmail.com, cell 336 382-7313 /* If you refuse to accept anything but the best you often get it. -unknown The rest of the time you get nothing. The really good trick is knowing when you should settle. -Bob Bridges */ -----Original Message----- From: IBM Mainframe Discussion List <IBM-MAIN@LISTSERV.UA.EDU> On Behalf Of Steve Smith Sent: Friday, May 12, 2023 11:38 For some reason LISTCAT LEVEL does not return what matches the level exactly. Use LISTCAT ENT for that. So you'll need both to get what you want. --- On Fri, May 12, 2023 at 11: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