Running the IBM Product Recommendations data extraction utility
Run the data extraction utility for IBM Product Recommendations, formerly known as Coremetrics Intelligent Offer from a command-line interface. The command generates both the EPCMF file and ECDF file at the same time.
Procedure
- Ensure that the WebSphere Commerce server is started.
- Ensure that you run the utility
as the wasuser user. To do so, issue the following command:su - wasuser_IDwhere wasuser_ID is the non-root user ID that is created before installing WebSphere Commerce. The default WebSphere Application Server user name is wasuser.
- Open a command prompt window.
- Run the data extraction utility:
- Call the utility script with the
following command:
WCDE_installdir/bin/dataextract.bat path_to_config_file
Wherepath_to_config_file
is the path to the wc-dataextract.xml file to use. For example:
Alternatively, you can use the relative path to the configuration file for the path value. If the path contains spaces, enclose the path in quotation marks.C:/IBM/WCDE_ENT70/samples/DataExtract/Catalog/wc-dataextract.xml
- Call the utility
script with the following command:
WC_installdir/bin/dataextract.bat path_to_config_file
WC_installdir/bin/dataextract.sh path_to_config_file
Wherepath_to_config_file
is the path to the wc-dataextract.xml file to use. For example:
Alternatively, you can use the relative path to the configuration file for the path value. If the path contains spaces, enclose the path in quotation marks.C:/Program Files/IBM/WebSphere/CommerceServer70/samples/DataExtract/Catalog/wc-dataextract.xml
- Call the utility script with the
following command:
- View the EPCMF and ECDF files that the utility creates.
The two files are output to the directory configured in the
<_config:DataOutputLocation>
element in the corresponding business object configuration file (wc-dataextract-catalog-entry.xml andwc-dataextract-catalog-group.xml
). The default location is:- WCDE_installdir/bin/
- WC_installdir/bin/
Coremetrics_client_ID.epcmf.csv
Coremetrics_client_ID.ecdf.csv
For example:
99999999.epcmf.csv
99999999.ecdf.csv
- To check the results of the data extract, view the log
file at the following path:
- WCDE_installdir/logs/dataextract.log
- WC_installdir/logs/dataextract.log