Chapter Contents |
Previous |
Next |
SAS/MDDB Server Administrator's Guide |
When you update an existing MDDB, remember that you cannot change the basic structure of the MDDB. You cannot add a classification variable, analysis variable, or statistic that was not in the original MDDB definition. If you want to perform any of these tasks, you will need to rebuild the entire MDDB from the original detail data. You can, however, performance-tune your MDDB by adding hierarchies (subcubes) that more closely match user data requests or delete hierarchies that are never requested.
This section discusses how to update an existing MDDB using the MDDB procedure, SAS/EIS software, and the MDDB class. Regardless of the method you use, an MDDB will be created containing the new data. During this process, the old MDDB must still exist, so make sure there is enough disk space before the update is attempted. When the process is complete, you must copy the new MDDB into a permanent library (if it is not already in one), delete the old MDDB, and then rename the new MDDB so that it has the same name as the old MDDB. If you do not give the new MDDB the name of the old MDDB and you are using the MDDB in SAS/EIS applications, the MDDB will not be recognized by your SAS/EIS metabase registrations.
Note: No explicit action is required to
update an MDDB using SAS/Warehouse Administrator.
When an MDDB is defined as part of the data flow of your data warehouse, it
will be automatically updated by SAS/Warehouse Administrator
software when the base table for the MDDB is updated.
Updating an MDDB Using the MDDB Procedure |
Example 1: Building an MDDB Using the MDDB Procedure shows how to create an MDDB called SASUSER.MDDB. To update that MDDB, you will use a PROC MDDB statement to create a new MDDB that contains the update data. Data for the new MDDB will come from the existing MDDB and from an updated base table.
In the following statement, the DATA= option specifies the name of the updated base table, the IN= option specifies the existing MDDB, and the OUT= option specifies the name of the new MDDB. Note that the LABEL= option is also used.
proc mddb data=sasuser.sales in=sasuser.mddb out=sasuser.mddbnew label='Updated sales MDDB: 15 Nov 1998'; run;After the procedure runs, you would use the DATASETS procedure to delete the old MDDB and rename the new MDDB so that it has the same name as the old MDDB:
proc datasets library=sasuser; delete mddb /mt=mddb; run; change mddbnew=mddb; run; quit;
Updating an MDDB Using SAS/EIS Software |
The Incremental MDDB Updates window in SAS/EIS software enables you to specify
Updating an MDDB Using the MDDB Class |
Chapter Contents |
Previous |
Next |
Top of Page |
Copyright 1999 by SAS Institute Inc., Cary, NC, USA. All rights reserved.