Guardian Procedure Calls Reference Manual (G06.25+)

Guardian Procedure Calls (G)
Guardian Procedure Calls Reference Manual522629-013
6-46
GROUPNAMETOGROUPID Procedure
(Superseded by GROUP_GETINFO_ Procedure )
The group name must be input in uppercase.
On return,
name-id contains the group ID associated with the group name in the
form:
name-id.<8:15> = group ID {0:255}
Condition Code Settings
< (CCL) indicates that name-id is out of bounds, or that an I/O error occurred
when the procedure accessed the $SYSTEM.SYSTEM.USERID file.
= (CCE) indicates that the designated group ID is returned.
> (CCG) indicates that the specified group name is undefined.
Example
INT .NAMEID [0:3] := ["GATORS "]; !want to get group ID
.
.
CALL GROUPNAMETOGROUPID (NAMEID);
!on return, NAMEID[0].<8:15> = contains the group ID
IF <> THEN ... !error occurred