Perform the following steps to run the samples:

1. Enable the DB2 instance as described in the
   manual "Installing the Intelligent Miner Products".
2. Create a database:
     db2 create database <DBNAME>
3. Enable the database for IM Scoring
   (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 the sample table containing sample data:
     db2 -stf bankingImport.db2
6. Import a data mining clustering model:
     db2 -stf bankingInsert.db2
     
Use the following samples to learn IM Scoring concepts:     
  a) Explore the mining clustering model 
     (only works if IM Visualization is installed):
      imvisualizer clusDemoBanking.pmml
  b) Extract information from the data mining model:
      db2 -stf bankingExtract.db2
  c) Apply the scoring functions from SELECT statements:
      db2 -stf bankingApplyView.db2
  d) Apply the scoring functions from INSERT statements:     
      db2 -stf bankingApplyTable.db2
  e) Obtain specific results using DM_ClusResultSpec:
      db2 -stf bankingApplyResultSpec.db2
  f) Apply one of the Easy Mining Procedures for scoring:
      db2 -stf bankingApplyEasyMining.db2   
  g) Manage the model cache to optimize performance 
     and score a single record provided by the application:
      db2 -stf bankingCacheModels.db2
  h) Recompute scores in realtime whenever a data record changes
     using triggers:
      db2 -std@ -f bankingTriggerScoring.db2
     
To compress Models created with IM Scoring V 7.1
     db2 -tf compressV7Models.db2
     
To export and import all PMML models in a database
(to run these samples you need write access to the current working directory)
     db2 -tf db2ExportModels.db2
     db2 -tf db2ImportModels.db2
     
If you want to delete all database objects created by the scoring samples:
     db2 -tf bankingDelete.db2
