Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (G)
Guardian Procedure Calls Reference Manual—522629-013
6-44
GROUPMEMBER_GETNEXT_ Procedure
Considerations
•
Aliases are defined only when Safeguard is installed.
•
Names are not returned in any particular order, and the order can change from one
RVU to the next.
•
Naming rules in the Guardian environment are more restrictive than those in the
OSS environment.
Example
! obtain all names associated with a particular group ID
i := 0;
user^list.len[i] := 0;
DO
error := GROUPMEMBER_GETNEXT_
(group^id, user^list.name[i]: maxlen, user^list.len[i]);
user^list.len [i + 1] := user^list.len[i];
user^list.name[i + 1] ‘:=‘
user^list.name[i] FOR user^list.len[i] BYTES;
i := i + 1;
UNTIL (error <> 0);