Hi
I have a piece of code that lists all the objects (user or a group) that is a a member of another group
/*Connect to the metadata server. */
options metaserver="biserver.whatever.com"
metaport=8561
metauser="sasadm@saspw"
metapass="password"
metarepository="Foundation";
%mduextr(libref=work)
proc sql;
create table work.sasmembership as
select distinct name 'name' as name , memName 'memName' as memName,'GROUP'
from work.Groupmemgroups_info
where substr(name,1,1) in ('p','v','f','w') or name in ('Report Developer','sqlserver','Report Viewer')
UNION
select distinct name 'name' as name , memName 'memName' as memName,'USER'
from work.Groupmempersons_info
where substr(name,1,1) in ('p','v','f','w') or name in ('Report Developer','sqlserver','Report Viewer');
quit;
what i want now is to be able to go through that group and isue a metadata command to add the member (be it a group or user) to the group
on another server is there a proc metadata command to add a group or user to a group?
ie
command bla addtogroup jeff destinationgroupname
or
command bla addtogroup group1 destinationgroup