Import command for data class and data collection analysis assets

You can use the istool import command with the -dca parameter to import data class and data collection analysis assets.

Purpose

You can import from an archive file that was exported from another instance of the same version of InfoSphere® Information Server. For example, you might export a file from a development environment and then import it into a test or production environment. You can migrate assets between versions of InfoSphere Information Server by importing assets that were exported from an earlier version.

Data class assets are created in InfoSphere Information Analyzer and InfoSphere Information Governance Catalog. Data collection analysis assets and the data field analysis assets that they contain are created in InfoSphere Information Analyzer. For more information on the assets and their identity strings, see Miscellaneous common metadata assets.

You can use a single istool import command with the -all parameter to import most types of metadata assets from an archive file. See Moving all assets from one metadata repository to another.

Prerequisites

You must have the Common Metadata Administrator role.

The preferred way to run this command is in the istool command-line window. If you run this command in your operating system command-line window or in scripts, you must add istool before the command name.

If you use custom java classifiers, you must move the JAR file from the source system to the target system when you import data classes that depend on it. You can move the JAR file before or after you do the import.

Importing multiple types of assets

Archive files can contain assets from multiple exports of multiple tools. For best performance, when you import from an archive file, or when you migrate assets of varying types in multiple archive files, run separate commands to import the following types of assets in the following order:
  1. Users and groups
  2. Common metadata
  3. InfoSphere DataStage® and QualityStage® assets.
  4. Reports.
  5. InfoSphere Information Analyzer assets.
  6. InfoSphere FastTrack assets.
  7. InfoSphere Information Governance Catalog extended data sources.
  8. InfoSphere Information Governance Catalog extension mapping documents.
  9. InfoSphere Information Governance Catalog business glossary assets. In versions earlier than 11.3, these assets are created in InfoSphere Business Glossary.
  10. Custom attributes for InfoSphere Information Governance Catalog extended data sources and extension mappings. In versions earlier than 11.3, these assets are created in InfoSphere Metadata Workbench.
Asset types not listed can be imported in any order.

Command syntax

Optional parameters and values in the syntax are enclosed in brackets, [ ].

import 
authentication parameters
[generic parameters] 
[-abortAfter number_of_errors]
-archive "file_name_and_path"
[-preview | -replace]
[-responseFile "file_name_and_path"]
[-mapping "file_name_and_path"]
–dataclassanalysis '[-allowDuplicates]'

Parameters

authentication parameters
Required. All asset interchange commands use authentication parameters to connect to a specific installation of InfoSphere Information Server.
generic parameters
The generic parameters are available to all asset interchange commands. Use the generic parameters to request help on command syntax, to specify silent or verbose operation, and to use a script to run commands.
-abortAfter | -abort number_of_errors
Specifies that the import stops if more than the specified number of errors occur.
-archive | -ar file_name_and_path
Required. Specifies the .isx file to import assets from.
-preview | -pre
Previews the import. The preview lists the assets that will be imported when the import runs. The assets are not imported when you run a command with the -preview parameter.
-replace
Replaces existing assets with imported assets. If you specify the -replace parameter, and an asset with the same identity exists in the target metadata repository, the imported asset is merged with the existing asset.
-responseFile | -rf "file_name_and_path"
Specifies the name and path of a response file that contains assets that failed to import during a run of a previous istool import -lm command. Not supported with the -preview parameter. For more information, see Using a response file with istool export and istool import commands.
-mapping | -m file_name_and_path
Specifies the path to the mapping file that instructs the import command to change some properties of imported assets during import, so that the imported assets correctly reconcile with the assets in the metadata repository. For more information, see Using a mapping file with the istool import command.
-dataclassanalysis | -dca '[-allowDuplicates]'
Required. Specifies that data class or data collection analysis assets are imported. The parameter must be followed by two single quotation marks ('), for example, -dca ''. You can use the following option within the single quotation marks:
-allowDuplicates
If duplicate assets exist in the import file, allows them to be imported as separate assets. If the duplicate assets have the same identity as an existing asset in the metadata repository, the existing asset is unchanged by the import, even if you also use the -replace parameter. For guidance on whether to allow duplicates, see Import settings for InfoSphere Metadata Asset Manager.

Exit status

A return value of 0 indicates successful completion. Any other value indicates failure.

Example

The following command previews the assets in the file customer.isx.
import –dom ABC:9443 –u user1 –p pass1 -pre 
-ar "c:\customer.isx" –dataclassanalysis ''
The following command imports all the data class and data collection analysis assets from the file customer.isx.
import –dom ABC:9443 –u user1 –p pass1 
-archive "c:\customer.isx" –dca '' 
The following command imports all the data class and data collection analysis assets from the file and allows duplicates to be created.
import –dom ABC:9443 –u user1 –p pass1 
-ar "c:\customer.isx" –dca '-allowDuplicates'