Macros for SAS Application Developers 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.



With filter on username:

%ms_getgroups(outds=userlist, user=James)

With filter on userid:

%ms_getgroups(outds=userlist, uid=1)
[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:
SomeGroup A group 1
Another Group this is a different group 2
admin Administrators 3

SAS Macros

Related Files

Definition in file