DM_impClasFileE

This function reads a Classification model from a file, and returns it as data of type DM_ClasModel. This data can then be inserted into a table where one of the columns is designated for this data type.

The encoding of characters in the imported file is specified by a parameter.

Syntax

Read syntax diagramSkip visual syntax diagram
>>-DM_impClasFileE--(--input file name--,--encoding name--)----><

Parameters

input file name
The name and the full path of the file to be imported. The specified file must correspond to the following conditions:
  • The file must exist on the database server.
  • The DB2® instance owner (unfenced) or the DB2 fenced user (fenced) must have read access to the file.
  • The file must be of one of the supported formats.

You can also use files that are compressed with gzip.

encoding name
Intelligent Miner® supports different encoding names. The MIME encoding strings are recommended, for example, iso-8859-1.
  • If the encoding name is a non-empty string, the value is interpreted as an XML encoding. The content of the imported file is parsed according to this encoding. The imported file must be a PMML document.
  • If the encoding name is the string 'SYSTEM', the locale settings of the operating system are used to determine the encoding of the file.
  • If the encoding name is NULL, the encoding is determined by the imported file.
    • If the file is a PMML document, the standard rules of the XML specification apply. That is, the encoding is either specified explicitly or assumed to be Unicode by default.
    • If the imported file is written in Intelligent Miner format, the locale settings of the operating system are used.

Usage

When the content of the file is read and imported into DB2, the file is no longer needed. However, you might want to keep the file in case you need to import the model again.

Return value

The return value is the imported model as data type DM_ClasModel.



Feedback | Information roadmap

https://www.ibm.com/docs/en/db2/10.5.0?topic=functions-dm-impclasfilee