Hi, if you are running at z/OS 2.1 or higher have you taken a look at ISGECJES in SAMPLIB? It is an assembler program that monitors for dataset contention every user-definable-interval and issues a message (TPUT, WTO) for each resource found to be in contention. If you are up for some coding, it could provide a starting point for a program to simply do a GQSCAN for the resource in question (code the RNAME, and remove WAITCNT), display the results somehow, and exit. Then you could code some JCL to make the execution of the job steps you really want to run conditional based on whether the GQSCAN step finds the resource to be held.
-Joe Joe Gentile z/OS GRS and RSM Development (845)435-2184 (T/L 295-2184) jwgen...@us.ibm.com ---------------------------------------------------------------------- For IBM-MAIN subscribe / signoff / archive access instructions, send email to lists...@listserv.ua.edu with the message: INFO IBM-MAIN