The !LISTU() subroutine returns the raw data used by the LISTU command.
The !LISTU() subroutine allows a developer to construct their own variant of LISTU, perhaps as a screen within an application.
The data returned in dyn.array is a dynamic array where each field is multivalued with a value for each active QM process in ascending user number order. The fields are:
Further fields or process types may be added in future releases.
User type counts can be retrieved in a QMBasic program using SYSTEM(1056).
NUM.USERS = DCOUNT(USERS<1>, @VM)
FOR I = 1 TO NUM.USERS
IF USERS<3,I> = 'I' THEN
DISPLAY FMT(USERS<1,I>, '3R') : ' ' : USERS<6,I>
The above program fragment displays a list of the user numbers and user login names of all interactive processes.