Macros for SAS Application Developers
https://github.com/sasjs/core
ms_getgroups.sas File Reference

Fetches the list of groups from SASjs Server. More...

Go to the source code of this file.

Detailed Description

Fetches the list of groups from SASjs Server and writes them to an output dataset. Provide a username to filter for the groups for a particular user.

Example:

%ms_getgroups(outds=userlist)

With filter on username:

%ms_getgroups(outds=userlist, user=James)

With filter on userid:

%ms_getgroups(outds=userlist, uid=1)
Parameters
[in]mdebug=(0) Set to 1 to enable DEBUG messages
[in]user=(0) Provide the username on which to filter
[in]uid=(0) Provide the userid on which to filter
[out]outds=(work.ms_getgroups) This output dataset will contain the list of groups. Format:
NAME:$32. DESCRIPTION:$256. GROUPID:best.
SomeGroup A group 1
Another Group this is a different group 2
admin Administrators 3

SAS Macros

Related Files

Definition in file ms_getgroups.sas.