BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Hi,

I have been able to create libraries in the metadata server using the below code:

options metaserver="xyz111"
metaport= 8561
metaprotocol=bridge
metauser="sasadm"
metapass="{sas001}c2FzYWRt"
metarepository="foundation";


data _null_;
length uri $256 rc $256 ;
rc=0;
/* Create a SASLibrary object. */

rc=metadata_newobj("SASLibrary",uri,"ADMIN");
put rc=;
put uri=;
run;

Could anyone please guide me as how I could set the other attributes and properties for the library (like directory, libname, engine, servercontext, ACT, etc). I am not supposed to use the proc metadata method to solve this. I am supposed to use the rc = metadata_setatr()(or methods like this). If anyone could guide me it would be a great help. Thanks in advance. 🙂

Regards,
Mihir Vora
Mobile : +65 9152 0724
1 REPLY 1
Cynthia_sas
Diamond | Level 26
In this manual:
http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/omd_ref_9966.pdf entitled
SAS® 9.1.3 Open Metadata Interface Reference (Second Edition) it says that:
For more information about defining a SASLibrary metadata object, refer to Usage Scenario: "Creating Metadata for a SASLibrary" in "Model Usage Scenarios" in the SAS Open Metadata Interface: User?s Guide.

The URL for referencing the above user's guide is:
http://support.sas.com/documentation/onlinedoc/91pdf/sasdoc_913/omd_interug_9964.pdf

However, you might want to contact Tech Support for more help with this question, as there might be particular issues when trying to do this in a program versus PROC METADATA that they know about and are able to help you with.

To find out about contacting Tech Support, refer to this site: http://support.sas.com/techsup/contact/index.html

cynthia

hackathon24-white-horiz.png

The 2025 SAS Hackathon has begun!

It's finally time to hack! Remember to visit the SAS Hacker's Hub regularly for news and updates.

Latest Updates

Creating Custom Steps in SAS Studio

Check out this tutorial series to learn how to build your own steps in SAS Studio.

Find more tutorials on the SAS Users YouTube channel.

SAS Training: Just a Click Away

 Ready to level-up your skills? Choose your own adventure.

Browse our catalog!

Discussion stats
  • 1 reply
  • 958 views
  • 0 likes
  • 2 in conversation