Vertical filtering uses the Target columns page of the Advanced Subscription Definition notebook for DB2 DataPropagator subscriptions and the Rows page of Advanced Replication Subscription notebook for JDBC subscription. To open either of these notebooks:
This section uses a sample table with 7 columns. The characteristics of this sample table are:
Column name data type nullable? default value NOTNULLINT1 INTEGER NO NOTNULLCHAR1 CHAR NO NOTNULLDATE1 DATE NO DEFAULTINT1 INT YES 1000 DEFAULTCHAR1 CHAR YES 'a' DEFAULTDATE1 DATE YES '2001-06-29' ID INTEGER NO
The ID column is the primary key.
Procedure
Defining the default value data-filter parameters:
100
A special value can also be used. The value $USERNAME allows a Sync Server user ID to be inserted as the value of the parameter. This allows you to have rows created by specific users inserted into the data source with their Sync Server user ID in a specific field. For example, for :PARAMCHAR1 type:
$USERNAME
Now all rows inserted into the sample table will have the Sync Server user ID inserted into the NOTNULLCHAR1 column. For the example table, add two more parameters:
:PARAMDATE1. '2001-06-29' :PARAMINT2. 15
Every user assigned to the filtered group will receive will receive only the 3 subscribed columns of the sample table. When a user inserts a new row in the table, it is synchronized to the data source using default values for the group in each of the unsubscribed columns. If the $USERNAME keyword is used in the data filter, the user ID of the user who inserted the row will be inserted for the value of that filtered column. Also, individual users may have specific default values that differ from the group default value configured on a user basis.
Related tasks
Related reference