All:
I want to thank each one of you for the help and guidance on this issue. We have decided to put together a compromise solution which will vastly reduce the number of "DATASET NOT FOUND" JCL errors - from tens of thousands to likely under 100.
We are basically going to change the manner that JCL is submitted when an "ALL" function is user-selected, essentially outsourcing the "Is DSN Cataloged?" problem to REXX running under the TSO monitor PGM (IKJEFT1B - batch entry point) in batch. We've already done this with WTOEXIT (we're not allowed to use console automation) whereby a REXX determines which JCL to submit based on the intercepted WTO message.
How do I contribute to the user-contributed library?
I have two snazzy Assember programs I wrote (years ago!) that can be very useful. SHOWUSER - display all signed-on users, the DBNAME/dictionary they're DCUFed to, the current task, terminal information, user-id and....if the user is signed-on to the CA-IDMS region though VTAM? Their name (from the ACEE control block). Like DCUF SHOUALL on steroids. Output like this:
=USER NAME====CV091====DBN/DICT===ID======LTERM==========PTERM/TASK INFO========
WILLIAM KEANE ZCRPWDS LD000000 NO PTERM ATTACHED
DARLA BROWN D26/LBD8 ZCRPDSH LTVT01 ADS2 R=0000556 W=0000558
MAURICE SPEES D17/LBD2 ZCRPMKS LTVT02 ADSR R=0000147 W=0000150
WILLIAM POPPER D24/LBD4 ZCRPWDS LTVT03 OLP R=0000193 W=0000195
PAUL LAFARGE D05/LBD5 ZCRPPEL LTVT04 ADS2 R=0000013 W=0000014
JAMES B MOORE DB5/SYST ZCRDJBM UCFLT01 SHOWUSER R=0000331 W=0002240
First line above is a batch job, the rest online tasks. The "R" and "W" numbers are read/write counts (since startup) for that PTERM (if an "Interactive" terminal).
And SHOWSTOR - displays all storage amounts, used and available, for 24, 31 and 64 bit storage. Also Scratch usage. Output like this:
=STORAGE FROM LDA/RAX===CV091======= BYTES ============R1850=GJI50B=============
24 BIT MAX FOR CV 091 11,509,760
24 BIT USED BY CV 091 2,617,344 8,892,416 AVAILABLE
31 BIT MAX FOR CV 091 1,737,490,432
31 BIT USED BY CV 091 94,171,136 1,643,319,296 AVAILABLE
64 BIT MAX FOR CV 091 17,592,186,040,320M
64 BIT USED BY CV 091 63,963,136
REGION= FROM JCL 0M
TOTAL STORAGE USED 160,751,616 (USED 24 + 31 + 64 BIT)
=SCRATCH AREA INFORMATION=========== HI-WATER ============ IN-USE ====== TOTAL =
SCRATCH IN 64 @ 28,672 413 306 1,828
Data values taken from IBM control blocks IHALDA (Local Data Area - 24 & 31 bit numbers) and the IARRAX (RSM Address Extension - 64 bit numbers). Scratch data from area CSA->SCRW or #SCRWDS.
No SVCs! Guaranteed. Simple pointer navigation and chain walking. The SHOWSTOR program does use the "G" class of instruction to handle the 64-bit numbers. (e.g.CVDG R4,S64MAX )