Previous Page | Next Page

METALIB Procedure

Example 1: Synchronizing Metadata with the Data Source


Procedure features:

OMR statement with LIBID value

Default connection properties

UPDATE_RULE statement with DELETE argument

REPORT statement with MATCHING argument

Other features:

ODS


This example adds, updates, and deletes metadata to match the physical tables in a SAS library.


Program

 Note about code
ods listing close;
ods html body="c:\test\updatereport.html";

proc metalib;
 Note about code
   omr (libid="A58LN5R2.AP000001" );
 Note about code
   update_rule=(delete);
 Note about code
   report(matching);
run;
 Note about code
ods html close;
ods listing;

SAS Output: HTML

[untitled graphic]

Previous Page | Next Page | Top of Page