QUERYENQ—query system ENQ data
Command invocation format
Call invocation format
OR
Variables returned in each row of the table
| Name | Size | Description |
|---|---|---|
| ZENJOB | 8 | Job or address space name holding or requesting the ENQ |
| ZENQNAME | 8 | Qname portion of the ENQ |
| ZENRNAME | 255 | Rname portion of the ENQ |
| ZENDISP | 5 | SHARE or EXCLU |
| ZENHOLD | 4 | OWN or WAIT |
| ZENSCOPE | 7 | SYSTEM or SYSTEMS |
| ZENSTEP | 7 | STEP or blank |
| ZENGLOBL | 6 | GLOBAL or blank |
| ZENSYST | 8 | System name |
| ZENRESV | 7 | RESERVE or blank |
Return codes
- 0
- Table returned or data set written, but XSYS parameter was not specified and the system is running in STAR mode. The data returned may not reflect all ENQs on all systems.
- 2
- Table returned or data set written.
- 4
- Table returned but truncated due to limit.
- 8
- No ENQs satisfy the request.
- 10
- No ENQs satisfy the request, but XSYS parameter was not specified and the system is running in STAR mode. The data returned may not reflect all ENQs on all systems.
- 12
- Table creation error, parameter or other termination error. See messages for more detail. This includes services not available due to configuration table restrictions.
- 14
- The SAVE data set is in use by another user.
- 20
- Severe error, including TBADD error or data set creation errors.
