Loading...
Searching...
No Matches
mv_getgroups.sas File Reference

Creates a dataset with a list of viya groups. More...

Go to the source code of this file.

Detailed Description

Returns exactly GROUPURI, GROUPNAME and GROUPDESC, all character variables of length 256. They contain the Viya group ID, name and description respectively. An empty response returns the same columns with zero rows. Values exceeding 256 bytes cause failure rather than being truncated. The request returns at most 10000 groups.

First, load the macros:

filename mc url
  "https://raw.githubusercontent.com/sasjs/core/main/all.sas";
%inc mc;

Next, execute:

%mv_getgroups(outds=work.groups)
Parameters
[in]access_token_var=(ACCESS_TOKEN) The global macro variable to contain the access token
[in]grant_type=(sas_services) valid values are "password" or "authorization_code" (unquoted).
[out]outds=(work.viyagroups) The library.dataset to be created that contains the list of groups
Version
VIYA V.03.04
Author
Allan Bowe, source: https://github.com/sasjs/core

SAS Macros

Definition in file mv_getgroups.sas.