RLQD (query parameter list)
The RLQD begins with four bytes of global information, starting at offset X'00'. The remainder of the RLQD consists of alternate headers and data items. Each header contains a code that describes the type and length of the data item that follows. Each header is four bytes long and the data items are variable in length.
The following shows the content of the headers and the four types of data items. The last header in the RLQD always contains X'80' in the second byte to indicate that the following data item is the last one in the RLQD.
- GLOBAL INFORMATION
- Bytes 1-4
- Global information
- HEADER INFORMATION
- Byte 1
- Type of data Item
- X'01' Work unit summary data
- X'02' Resource data
- X'03' Lock data for held resource
- X'04' Lock data for suspended request
- Byte 2
- Last data item
- X'80' Last data item in the RLQD
- Bytes 3 and 4
- Length of data item DATA ITEM X'01': WORK UNIT SUMMARY DATA:
- Bytes 1-8
- Owning work unit ID
- Bytes 9 and 10
- Number of resources locked
- Bytes 11 and 12
- Number of suspended requests DATA ITEM X'02': RESOURCE DATA
- Byte 1
- Global scope flag X'80'
- Bytes 5-40
- Resource name DATA ITEM X'03': LOCK DATA FOR HELD RESOURCE
- Bytes 1-4
- RLB pointer
- Bytes 5-13
- Work unit ID
- Bytes 13-29
- State counters—8 halfword counters
- Byte 29
- Lock duration
- Byte 30
- Flags
- X'80' Held lock is count by state
- X'40' Held lock is resultant state
- Byte 31
- Current state DATA ITEM X'04': LOCK DATA FOR SUSPENDED RESOURCE:
- Bytes 1-4
- RLB pointer
- Bytes 5-12
- Work unit ID
- Byte 13
- The function that was requested. The functions are the same as in Word 1 Byte 2-Request Function (FC)
- Byte 14
- Lock duration
- Byte 15
- Flags
- X'80' Suspended lock is count by state
- X'40' Suspended lock is resultant state