Perform the following steps to run the samples:

1. Enable the DB2 instance as described in the
   IM Modeling Administration and Programming guide
   in chapter Quick Start / Configuration
2. Create a database
     db2 create database <DBNAME>
3. Enable the database for the use of IM Modeling
   (idmenabledb can be found in the bin directory of your installation):
     idmenabledb <DBNAME> fenced dbcfg
4. Connect to the database:
     db2 connect to <DBNAME>

5. Create and populate the database with the sample tables:
     db2 -tvf SampleTables.db2
     


Now you can run the samples of the Easy Mining Procedures by executing 
the following DB2 commands: 

a) For running the samples of the IDMMX.FindDeviations procedures:
   db2 -tvf FindDeviations.db2

b) For running the samples of the IDMMX.ClusterTable procedures:
   db2 -tvf ClusterTable.db2

c) For running the samples of the IDMMX.FindRules procedures:
   db2 -tvf FindRules.db2

d) For running the samples of the IDMMX.PredictColumn procedures:
   db2 -tvf PredictColumn.db2

e) For running the samples of the IDMMX.PredictColValue procedures:
   db2 -tvf PredictColValue.db2

f) For running the samples of the IDMMX.ExplainColValue procedures:
   db2 -tvf ExplainColValue.db2

g) For running the samples of the IDMMX.FindMostImpFields procedures:
   db2 -tvf FindMostImpFields.db2

h) For running the samples of the classification procedures:
   db2 -tvf ClasProcs.db2

i) For running the samples of the regression procedures:
   db2 -tvf RegProcs.db2

j) For running the samples of the clustering procedures:
   db2 -tvf ClusProcs.db2 

k) For running the samples of the rule procedures:
   db2 -tvf RuleProcs.db2

l) For running the samples of the procedures for exporting models and 
   test results:
   db2 -tvf  ExportProcs.db2
 
m) For cleaning up the objects created by calls of the Easy Mining Procedures
   and deleting the tables with the sample data:
   db2 -tvf CleanUpTask.db2



