BookmarkSubscribeRSS Feed
☑ This topic is solved. Need further help from the community? Please sign in and ask a new question.
ZO_zo
Fluorite | Level 6

Hello,

 

I try to change the SASUSERs group permission on a secure folder. I want to choose the 'Select' option by code.
Here is my code:

 

filename dem "...";

data _null_;
file dem;

put "<UpdateMetadata>";
put "<Metadata>";
put "<Tree Id='aaaaaaaa.xxxxxxxx'>";
put "<AccessControls>";
put "<AccessControlEntry Name='aaaaaa:xxxxxxxx' ObjRef='aaaaaaaa.xxxxxxxx'>";
put "<Permissions>";
put "<Permission ObjRef='aaaaaaa.xxxxxxxx'/>";
put "</Permissions>";
put "<Identities>";
put "<IdentityGroup ObjRef='A5416ZHE.A5000001'/>";
put "</Identities>";
put "</AccessControlEntry>";
put "</AccessControls>";
put "</Tree>";
put "</Metadata>";
put "<Reposid>aaaaaaaa.xxxxxxxx</Reposid>";
put "<NS>SAS</NS>";
put "<Flags>268435456</Flags>";
put "<Options/>";
put "</UpdateMetadata>";run;

filename rep "...";
proc metadata verbose
in=dem
out=rep;
run;

 

the code runs without error but nothing moves at the metadata level.
Thank you for your help.

1 ACCEPTED SOLUTION

Accepted Solutions
gwootton
SAS Super FREQ
You may want to use the data step functions instead of an XML update:

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/n1v45aapenzea2n16uw9zg8gcl77.htm
--
Greg Wootton | Principal Systems Technical Support Engineer

View solution in original post

2 REPLIES 2
gwootton
SAS Super FREQ
You may want to use the data step functions instead of an XML update:

https://go.documentation.sas.com/doc/en/pgmsascdc/9.4_3.5/lrmeta/n1v45aapenzea2n16uw9zg8gcl77.htm
--
Greg Wootton | Principal Systems Technical Support Engineer
ZO_zo
Fluorite | Level 6
Thanks for your feedback. I will try that.

suga badge.PNGThe SAS Users Group for Administrators (SUGA) is open to all SAS administrators and architects who install, update, manage or maintain a SAS deployment. 

Join SUGA 

Get Started with SAS Information Catalog in SAS Viya

SAS technical trainer Erin Winters shows you how to explore assets, create new data discovery agents, schedule data discovery agents, and much more.

Find more tutorials on the SAS Users YouTube channel.

Discussion stats
  • 2 replies
  • 756 views
  • 0 likes
  • 2 in conversation