Usage Note 38305: Updating table metadata for an existing table registration
If you are receiving an error that the registration for a column does not exist in the metadata server, and that column does exists on the input table, then that column was probably added to the input table after the table was registered to the SAS® Metadata Server. You can use one of the following methods to update the metadata for the input table.
Method I. If the column is on the input table but not in the metadata, first try importing the new column into the existing metadata registration for the table. To do this, follow these steps within SAS® Management Console:
- Under Environment Management, navigate to the table via the path:
Data Library Manager ► SAS Libraries
► <your_libname>
- In the right-hand pane, you should see your table listed within the library listing. Right-click on the table and select Properties.
- Click the Columns tab, and then click the Import button at the lower right.
- In the Import Columns dialog box, you should be able to move the currently unregistered columns to the Selected Columns pane. Click OK to save the changes.
Method II. If Method I does not work for you, or if the column already appears on the Columns tab, then you will must unregister the table and import it back in. This action could impact some references to this table, but that cannot be avoided. Therefore, if you can update the metadata by just importing the individual column, that is the recommended method to follow.
Method III. If you do not want to delete the table by using Method II, or if you want to update the table using SAS code, you can use PROC METALIB to update the metadata for the table. The METALIB procedure synchronizes table definitions in a SAS metadata repository with current information from the physical library data source.
Below is sample code that can be used to update the metadata for a table.
proc metalib;
omr (library="Library" repname="Foundation" user="userid"
password="password" protocol=BRIDGE port="8561"
metaserver="hostname/ipaddress");
update_rule=(delete);
select tablename; /* optionally list table(s) to update. */
report;
run;
|
For more information about using PROC METALIB, see
METALIB Procedure.
Operating System and Release Information
| SAS System | SAS BI Server | z/OS | 9.1 TS1M0 | |
| Microsoft Windows 2000 Advanced Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Datacenter Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Server | 9.1 TS1M0 | |
| Microsoft Windows 2000 Professional | 9.1 TS1M0 | |
| Microsoft Windows NT Workstation | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Datacenter Edition | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Enterprise Edition | 9.1 TS1M0 | |
| Microsoft Windows Server 2003 Standard Edition | 9.1 TS1M0 | |
| Microsoft Windows XP Professional | 9.1 TS1M0 | |
| 64-bit Enabled AIX | 9.1 TS1M0 | |
| 64-bit Enabled Solaris | 9.1 TS1M0 | |
| HP-UX IPF | 9.1 TS1M0 | |
*
For software releases that are not yet generally available, the Fixed
Release is the software release in which the problem is planned to be
fixed.
| Date Modified: | 2010-02-17 16:35:35 |
| Date Created: | 2010-01-06 09:35:03 |