Scott, As suggested earlier, look into the ISGQUERY macro. There are examples in the Authorized Assembler Services Reference. Here is some additional guidance:
- Use SEARCH=BY_FILTER with specific match on Qname and Rname for better performance - Qname will be SYSDSN - Rname will be the dataset name - If you know the SCOPE then specify that too. If you want it to work generically, leave it off. - JOBNAME is an optional filter to restrict results to a particular jobname which would be the one you expect to get the ENQ. There are other filter parameters too you might want to look into. - If you expect to run the query program on another system than the target job in the same sysplex, code GATHERFROM=SYSPLEX. GATHERFROM=SYSTEM performs better than GATHERFROM=SYSPLEX in GRS Star. - You could add REQUESTERLIMIT to limit the number of RQ records (owner or waiter information) returned by ISGQUERY -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