Creating Table Metadata for a New Library

When you first register a SAS library, it has no related table metadata. You can add this metadata by using the Register Tables wizard in SAS Management Console (see Overview of Managing Table Metadata), or by using PROC METALIB. Before you can successfully run PROC METALIB code, you must have ReadMetadata, and WriteMetadata access to the library metadata object. You must also have ReadMetadata and WriteMemberMetadata access on the metadata folder to use for storing the table metadata.
The following example shows how to use PROC METALIB to create initial table definitions for the tables in a library. The REPORT statement causes the procedure to write information about the table definitions that it creates.
proc metalib;
  omr (library="lib1" repname="Foundation" );
  report;
run;
The report that is generated by the code sample resembles the following:
Sample Summary Report
Sample Summary Report