RSE server registers a newly connected user with the lock daemon. The registration info contains the Address Space Identifier (which is the ASID of the thread pool server), the Task Control Block (TCB) ID (user specific) and the user ID.
Note that registration is done at connect time only, so all RSE users active before the lock daemon was (re)started will not be registered.
When the lock daemon receives a dataset query, it scans the system's Global Resource Serialization (GRS) queues. If the ASID and TCB match that of a registered user, the user ID is returned as lock owner. Otherwise the jobname/user ID related to the ASID is returned as lock owner.
A console message with the registration info is displayed if the registration fails, so that an operator can issue the D GRS,RES=(*,dataset[(member)]) operator command and manually match the ASID and TCB values with the one reported by the system as lock owner.
>>─┬─START ─┬──procname──┬───────────────────────────┬────────><
└─S ─────┘ │ ┌─'usr/lpp/rdz'──┐ │
├─,HOME=─┴─'install_path'─┴─┤
│ ┌─'etc/rdz'─────┐ │
├─,CNFG=─┴─'config_path'─┴──┤
│ ┌─1─────────┐ │
├─,LOG=─┴─log_level─┴───────┤
└─<─────────────────────────┘
>>─┬─MODIFY ─┬──procname───────────────────────────────────────>
└─F ──────┘
>──,APPL=─┬─QUERY ─┬─┬─dataset─────────┬──────────────────────><
└─Q ─────┘ └─dataset(member)─┘
BPXM023I (stclock) dataset[(member)] NOT LOCKED BPXM023I (stclock) dataset[(member)] LOCKED BY userid
>>─┬─STOP ─┬──procname────────────────────────────────────────>< └─P ────┘