sas-metadata

adding a meta user to a meta group in sas

泄露秘密 提交于 2020-08-26 04:53:19
问题 I've around 600 meta users in SAS EGRC 6.1 in the platform in SAS 9.4. I want to add those users to a meta-group. for this, I'm using code below libname current '/tmp/temp1'; /* for the current metadata */ libname addgrps '/tmp/temp2'; /* current augmented with the changes */ libname updates '/tmp/temp3'; /* for the updates created by the mducmp macro */ options metaserver=abc metaport=8561 metauser='sasadm@saspw' metapass='xyz123' metaprotocol=bridge metarepository=foundation; %mduextr

Retrieving tables located on metadata server with SAS

元气小坏坏 提交于 2019-12-24 20:05:02
问题 I want to list all tables on metadata server. I've tried with the following data step but it only pics one table per library and I can't figure out why. This is the code I've been using: options metaserver="xxxx" metaport=8561 metauser="xxxx" metapass="xxxx" METAPROTOCOL=BRIDGE metarepository="Foundation"; data meta_libraries; length uri serveruri conn_uri domainuri libname ServerContext AuthDomain path_schema usingpkguri type tableuri coluri $256 id $17 desc $200 libref engine $8 isDBMS $1

Generic way to get SAS Table metadata URI

限于喜欢 提交于 2019-12-20 04:51:48
问题 I'm building a utility that leverages the SAS metadata ID (or URI) of a table object. The following code works fine for getting the ID when the library uses the BASE engine: %let mylib=SOMELIB; data output (keep=uri dataname); length uri $100 dataname $256; uri=''; i=1; do until (rc<0); rc=metadata_getnasn("omsobj:SASLibrary?@Libref='&mylib'","Tables",i,uri); put rc=; prc=metadata_getattr(uri,"Name",dataname); if rc>=0 then output; i+1; put i=; end; run; However for other library engines (eg

SAS Metadata Objects Details - SASLibraries, PhysicalTables, Jobs

拈花ヽ惹草 提交于 2019-12-13 02:53:54
问题 I've used this code to fetch the list of objects for all SAS Libraries, Physical Tables and Jobs. https://github.com/Boemska/macrocore/blob/master/meta/mm_getobjects.sas I now need to fetch these objects details, Like for Libraries - I need their libname and full path, Teradata Libs - Schema Name,Lib path Physical Tables - Location and other attribs Jobs - Location, and other attribs. I'm not very familiar on how or what attribs can we report, but I definitely need their paths and attribs.

Adjust Metadata URI to Exclude WorkTable Metadata Type

99封情书 提交于 2019-12-11 06:25:43
问题 I've built the code below for getting a list of SAS registered tables from metadata. It works fine but takes a long time to run due to the large volume of WorkTables (a subtype of PhysicalTable): data work.tables (keep=uri name); length uri name $256; n=1; do while(metadata_getnobj("omsobj:PhysicalTable?@Id contains '.'",n,uri)>=0); n+1; if substr(uri,8,9)='WorkTable' then continue; if metadata_getattr(uri, "SASTableName", name)=0 then output; end; run; Is there any way to adjust the uri so

SAS Folder Path for Metadata tables

隐身守侯 提交于 2019-12-11 03:24:18
问题 I'm wondering if anyone knows how to retrieve the sas folder path for metadata tables? I would like to list the folder path for each tables located on metadata. Example: Table FactPortfolio is under the following fodler structure in management console: Commerc-->Sweden-->Portfolios-->Resources-->Tables In metadata browser in sas, I can find the folder path if I click on tables and trees and parent trees until i reach the top hierarchy. However, I would like to retrieve it with metadata data

Creating Internal Accounts in SAS Metadata Server by programm on SAS Base

ぃ、小莉子 提交于 2019-12-09 13:15:55
问题 I'm trying to create Internal Accounts programmaticaly by using proc metadata . The code section below creates person with External Login. put"<Person Name=%str(%')&&PersonName&i.%str(%')>"; put"<Logins>"; put"<Login Name=%str(%')Login.&&PersonName&i.%str(%') Password=%str(%')&&word&i.%str(%')/>"; put"</Logins>"; put"</Person>"; To create ExternalLogin we can set attribute Password , and in SAS Metadata it will be encrypted automaticaly. But to create InternalLogin type of object it is

Creating Internal Accounts in SAS Metadata Server by programm on SAS Base

拈花ヽ惹草 提交于 2019-12-03 16:52:44
I'm trying to create Internal Accounts programmaticaly by using proc metadata . The code section below creates person with External Login. put"<Person Name=%str(%')&&PersonName&i.%str(%')>"; put"<Logins>"; put"<Login Name=%str(%')Login.&&PersonName&i.%str(%') Password=%str(%')&&word&i.%str(%')/>"; put"</Logins>"; put"</Person>"; To create ExternalLogin we can set attribute Password , and in SAS Metadata it will be encrypted automaticaly. But to create InternalLogin type of object it is necessary to make the hash value of the password and the salt . I know that the standard sas002 encryption