To add tables to a dynamic
cluster table, you must have an existing dynamic cluster table. The
SPD Server tables that you want to add to the dynamic cluster table
must all be in the same domain as the dynamic cluster table. They
must use identical table structures (columns and indexes) and compression.
However, member table partition sizes and member table owners can
vary. These requirements ensure the metadata compatibility that is
required to add to a dynamic cluster table.
After the SPD Server
tables are organized, a simple PROC SPDO command is used to add the
tables to an existing dynamic cluster table.
The following graphic
shows sales tables for the first six months of 2005. These tables
are set up to be added to the dynamic cluster table that contains
monthly sales transactions data for 2003 and 2004.
The following code shows
the PROC SPDO command syntax that is used to add tables to an existing
dynamic cluster table:
PROC SPDO library=domain-name;
cluster add Sales_History
mem=sales200501
mem=sales200502
mem=sales200503
mem=sales200504
mem=sales200505
mem=sales200506;
quit;
PROC SPDO uses a LIBRARY
statement to identify the domain that contains the existing dynamic
cluster table that you want to add to. The CLUSTER ADD syntax specifies
the name of the dynamic cluster table that you want to add to (Sales_History).
The MEM= syntax identifies
the member tables of the table to be added to the existing dynamic
cluster table.
In the following graphic,
six tables that include monthly sales transactions for the first half
of 2005 are set up to be added to the existing dynamic cluster table
that contains 2003 and 2004 sales transactions data.