Determining Which Clients Are Linked to a Library

Y (Status Interrogate) System Command

You can use the Y (Status Interrogate) system command to display the client processes that are linked to a server library process. The following is an example of this display:

Status of Job 2375/2375 at 01:14:11
Program name: *SYSTEM/GENERALSUPPORT
   Codefile created: Monday, July 16, 2001 (20011197) at 14:55:19
Priority: 50
Origination: Unit 0
Stack State: Frozen, Permanent

This library is being used by 8 programs:
   The MCP
   9345: *SYSTEM/SDASUPPORT ON SYS38
   4972: *SYSTEM/TCPHOSTSERVICES
   4876: *SYSTEM/TCPIP/BNAV2/MANAGERS/12152
   6551: *OBJECT/MAIL
   2953: (SWDUNCAN)MCP/39/TRAP/MULTICOMP/AMLIP
   2915: (JASMITH)MCP/MM17A ON MCPS
   4983: *SYSTEM/PRINT/REMOTE/SERVER

Equivalent GETSTATUS Call

A DCALGOL program can obtain the same information by using the GETSTATUS call with type 6 (Mix Entries), subclass 1, and mask bits 18 and 34 set. Mask bit 18 returns the number of client processes linked to the library. Mask bit 34 returns a list of the client processes.