Help using Base SAS procedures

proc metalib?

Reply
N/A
Posts: 0

proc metalib?

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
Super Contributor
Super Contributor
Posts: 3,174

Re: proc metalib?

Posted in reply to deleted_user
SAS support site - Google advanced search argument below generates several matching documents for review/consideration:

"proc metalib" site:sas.com

Scott Barry
SBBWorks, Inc.
Respected Advisor
Posts: 4,173

Re: proc metalib?

Posted in reply to deleted_user
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'Smiley Wink you can ignore the metadata at all for what you want to do.

HTH
Patrick
Ask a Question
Discussion stats
  • 2 replies
  • 166 views
  • 0 likes
  • 3 in conversation