@sasjs/core 4.50.0 → 4.50.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/xplatform/mx_getgroups.sas +16 -1
package/package.json
CHANGED
|
@@ -20,7 +20,7 @@
|
|
|
20
20
|
Valid values are "password" or "authorization_code" (unquoted).
|
|
21
21
|
@param [out] outds= (work.mx_getgroups) This output dataset will contain the
|
|
22
22
|
list of groups. Format:
|
|
23
|
-
|
|
|
23
|
+
|GROUPNAME:$32.|GROUPDESC:$256.|GROUPURI:best.|
|
|
24
24
|
|---|---|---|
|
|
25
25
|
|`SomeGroup `|`A group `|`1`|
|
|
26
26
|
|`Another Group`|`this is a different group`|`2`|
|
|
@@ -54,6 +54,15 @@
|
|
|
54
54
|
outds=&outds,
|
|
55
55
|
mdebug=&mdebug
|
|
56
56
|
)
|
|
57
|
+
data &outds;
|
|
58
|
+
length groupuri groupname $32 groupdesc $128 ;
|
|
59
|
+
set &outds;
|
|
60
|
+
keep groupuri groupname groupdesc;
|
|
61
|
+
groupuri=cats(groupid);
|
|
62
|
+
groupname=name;
|
|
63
|
+
groupdesc=description;
|
|
64
|
+
run;
|
|
65
|
+
proc sort; by groupname; run;
|
|
57
66
|
%end;
|
|
58
67
|
%else %if &platform=SAS9 or &platform=SASMETA %then %do;
|
|
59
68
|
%if &user=0 %then %let user=;
|
|
@@ -63,6 +72,7 @@
|
|
|
63
72
|
,repo=&repo
|
|
64
73
|
,mDebug=&mdebug
|
|
65
74
|
)
|
|
75
|
+
proc sort data=&outds; by groupname; run;
|
|
66
76
|
%end;
|
|
67
77
|
%else %if &platform=SASVIYA %then %do;
|
|
68
78
|
%if &user=0 %then %do;
|
|
@@ -78,6 +88,11 @@
|
|
|
78
88
|
,grant_type=&grant_type
|
|
79
89
|
)
|
|
80
90
|
%end;
|
|
91
|
+
proc sort
|
|
92
|
+
data=&outds(rename=(id=groupuri name=groupname description=groupdesc))
|
|
93
|
+
out=&outds (keep=groupuri groupname groupdesc);
|
|
94
|
+
by groupname;
|
|
95
|
+
run;
|
|
81
96
|
%end;
|
|
82
97
|
|
|
83
98
|
%mend mx_getgroups;
|