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

Creates dataset with all groups or just those for a particular user. More...

Go to the source code of this file.

Detailed Description

Provide a metadata user to get groups for just that user, or leave blank to return all groups. Usage:

  • all groups: mm_getGroups()
  • all groups for a particular user: mm_getgroups(user=&sysuserid)
Parameters
[in]user=the metadata user to return groups for. Leave blank for all groups.
[in]repo=the metadata repository that contains the user/group information
[in]mDebug=set to 1 to show debug messages in the log
[out]outds=the dataset to create that contains the list of groups
Returns
outds dataset containing all groups in a column named "metagroup"
  • groupuri
  • groupname
  • groupdesc
Version
9.2
Author
Allan Bowe

Definition in file mm_getgroups.sas.