< 
https://www.ibm.com/docs/en/zos/2.2.0?topic=catalogs-catalog-search-interface-users-guide>

________________________________________
From: IBM Mainframe Discussion List <[email protected]> on behalf of Bob 
Bridges <[email protected]>
Sent: Friday, May 12, 2023 11:23 AM
To: [email protected]
Subject: Listing empty HLQs - LISTCAT?

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.

---
Bob Bridges, [email protected], cell 336 382-7313

/* I know everyone thinks Republicans aren't funny. But if you get a bunch
of us together, we can be a real riot.  -Nancy Mace at Washington Press Club
*/

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

----------------------------------------------------------------------
For IBM-MAIN subscribe / signoff / archive access instructions,
send email to [email protected] with the message: INFO IBM-MAIN

Reply via email to