Sample description: 
===================

Sample93erCars.java
===================

The sample program Sample93erCars.java demonstrates the usage of the RecordScorer. 
It uses the predictive mining model 93er_cars.pmml and predictes minimum car prices 
given some characteristics of the car, like "Horsepower", "Length", etc. 

Perform the following steps to run the sample:
==============================================

1. Set CLASSPATH: 
  export CLASSPATH=/opt/IMinerX/V8.2/java/xerces.jar:/opt/IMinerX/V8.2/java/idmscore.jar:$CLASSPATH

2. Compile the sample program:
  javac Sample93erCars.java

3. Run the sample programs: 
  java Sample93erCars


SampleDemoBanking.java / SampleDemoBanking_Oracle.java
======================================================
IM Modeling stores its PMML models in DB2 tables. IM Scoring can import models
into DB2 or Oracle tables.
This sample demonstrates how to read a model from the database and use it
for the RecordScorer.
The sample uses a JDBC Type 4 driver to read the model.
For DB2 and Oracle, it assumes that the DB2 server is installed on the same 
machine. The DB2 default port is 50000, the Oracle default port is 1521.


Perform the following steps to run the sample:
==============================================
1. Run the Scoring DB2 sample in /opt/IMinerX/V8.2/samples/ScoringDB2
   or the Scoring Oracle sample in /opt/IMinerX/V8.2/samples/ScoringOracle
   to obtain a model in a database, at least the script
        DB2:    db2 -tf bankingInsert.db2
        Oracle: sqlplus <user/password> @bankingInsert.sql

2. Set CLASSPATH: 
   For DB2, make sure your CLASSPATH contains the DB2 JDBC type 4 driver db2jcc:
     echo $CLASSPATH
   If not, run the db2profile script of your DB2 instance:
     . /home/db2inst1/sqllib/db2profile
   For Oracle, if the CLASSPATH does not contain the JDBC driver, add it as follows:
     export CLASSPATH=<Oracle root directory>/jdbc/lib/classes12.zip:$CLASSPATH
     
   For both databases, perform this command:
     export CLASSPATH=/opt/IMinerX/V8.2/java/xerces.jar:/opt/IMinerX/V8.2/java/idmscore.jar:$CLASSPATH

3. Compile the sample program:
	DB2:    javac SampleDemoBanking.java
        Oracle: javac SampleDemoBanking_Oracle.java

4. Run the sample program: 
	DB2:    java SampleDemoBanking <dbname> <dbuser> <password>
        Oracle: java SampleDemoBanking_Oracle <dbname> <dbuser> <password>

