BookmarkSubscribeRSS Feed
deleted_user
Not applicable
Can anyone help me use this procedure?

I am trying to replace a dataset on a metdata library with a dataset currently in the work directory. They have the same fields but will have slightly different number of rows.

Sounds simple but I can't do it using a simple datastep, it says I don't have permission and I should use a proc metalib. Message was edited by: cstanyer
2 REPLIES 2
sbb
Lapis Lazuli | Level 10 sbb
Lapis Lazuli | Level 10
SAS support site - Google advanced search argument below generates several matching documents for review/consideration:

"proc metalib" site:sas.com

Scott Barry
SBBWorks, Inc.
Patrick
Opal | Level 21
From what you describe I don't think Proc Metalib is what you're aiming for.

Proc Metalib synchronises physical SAS tables with Metadata definitions for SAS tables.

Metadata contains only data about data - in the case of a SAS table the metadata would be things like: In what library is the table, what variables with what formats, informats,... are in it, etc.

Therefore something like a "dataset on a metadata library" can't be; there is only a metadata table definition pointing to a physical SAS table.

As long as you can access the physical SAS table directly (libname myds 'path where target SAS table is stored';) you can ignore the metadata at all for what you want to do.

HTH
Patrick

sas-innovate-2024.png

Don't miss out on SAS Innovate - Register now for the FREE Livestream!

Can't make it to Vegas? No problem! Watch our general sessions LIVE or on-demand starting April 17th. Hear from SAS execs, best-selling author Adam Grant, Hot Ones host Sean Evans, top tech journalist Kara Swisher, AI expert Cassie Kozyrkov, and the mind-blowing dance crew iLuminate! Plus, get access to over 20 breakout sessions.

 

Register now!

What is Bayesian Analysis?

Learn the difference between classical and Bayesian statistical approaches and see a few PROC examples to perform Bayesian analysis in this video.

Find more tutorials on the SAS Users YouTube channel.

Click image to register for webinarClick image to register for webinar

Classroom Training Available!

Select SAS Training centers are offering in-person courses. View upcoming courses for:

View all other training opportunities.

Discussion stats
  • 2 replies
  • 731 views
  • 0 likes
  • 3 in conversation