!LISTU() |
|
|
The !LISTU() subroutine returns the raw data used by the LISTU command.
Format
CALL !LISTU(dyn.array)
where
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 the SYSTEM() function with key 1056 (SYS$USER.COUNTS).
Example
CALL !LISTU(USERS) 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> END NEXT I
The above program fragment displays a list of the user numbers and user login names of all interactive processes.
See also: |