IIRC doing a listcat catalog(<some_high_level_qualifier>)
will , if the <some_high_level_qualifier> is an alias, list the catalog pointed to by the alias,
and possibly catalog not found if no alias exists!
B = 'IDCL39'
"PROFILE PREFIX (B)"
"LISTCAT CATALOG ("B")"
EXIT
why this give catalog not found?
I tried a few things and never received a "catalog not found" message.
Instead I received:
IDC3012I ENTRY B. NOT FOUND+
and
IDC3016I CATALOG IS NOT AVAILABLE+
PLEASE SEND EXACT INFORMATION !!!
Note that the B in the PROFILE command is within the quotes.
Which means it will list all entries starting with B. in catalog IDCL39.
(In this case, it seems the PREFIX acts as a filter on the LISTC output. I didn't knew that)