Export command for data class and data collection analysis assets
You can use the istool export command with the -dca parameter to export data class and data collection analysis assets.
Purpose
You export the assets into a file that can be imported into a different instance of InfoSphere® Information Server. For example, you can export from a development environment and import the file into a production or test environment. You can also migrate assets to a newer version of InfoSphere Information Server.
The export creates an archive file, which by default has the suffix .isx.
You can export data class assets, data collection analysis assets, or both with the same command. For more information on the asset types and their identity strings, see Miscellaneous common metadata assets.
Prerequisite
You must have the Suite User 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.
Command syntax
Optional parameters and values in the syntax are enclosed in brackets, [ ].
export
authentication parameters
[generic parameters]
-archive "file_name_and_path"
[-maxArchiveSize number_of_megabytes]
[-updatearchive]
[-abortIfError number_of_errors]
[-preview] | [-responseFile "file_name_and_path"]
–dataclassanalysis '[-base "beginning_section_of_identity_string"][data_class_assets] [data_collection_analysis_assets]
[-includeClassification]
[-contactAssignmentOnly]
[-includeContactAssignment]
[-includeAnnotation]
[-batchAssets number_of_assets_to_batch]
'
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.
- -archive |-ar "file_name_and_path"
- Required. Specifies the .isx file that the assets are exported to.
- -maxArchiveSize | -mas number_of_megabytes
- For enhanced export and import performance, creates additional archive files when the size of the export file exceeds the specified number of megabytes. For example, if you specify 500 and the total size of the export is 1,300 MB, two additional archive files are created with numeric suffixes added to their names. For import, specifying the first archive file imports all. For more information, see Common parameters.
- -updatearchive | -up
- Updates the archive file if it exists. If you do not specify -updatearchive, the content of the existing archive file is overwritten.
- -abortIfError | -abort number_of_errors
- Stops the export after the specified number of errors.
- -preview | -pre
- Previews the export. The preview lists the custom attributes that are exported when the export runs.
- -responseFile | -rf "file_name_and_path"
- Specifies the name and path of a response file that contains assets that failed to export during a run of a previous istool export -ca command. Not supported with the -preview parameter. For more information, see Using a response file with istool export and istool import commands.
- -dataclassanalysis | -dca '[-base "beginning_section_of_identity_string"][data_class_assets] [data_collection_analysis_assets] [options]'
- Required. Specifies the identity strings of the assets to export.
You can specify multiple identity strings, each separated by a space.
You must specify either or both of the following types of assets:
- Data class assets: /namespace/data_class_name.dc
- Data collection analysis assets: /project_name.als
Exit status
A return value of 0 indicates successful completion. Any other value indicates failure.
Examples
The following command exports all data class assets, data collection analysis assets, related contact assignments, and related annotations and classifications for data classes to the file dca.isx.export -domain my_server:9443 -username isadmin -password isadmin -archive c:\dca.isx -dca '/*/*.dc /*.als -inccls -incca -incannot'The following command exports the data class DataClass1 and any of its subclasses, without exporting classifications.
export -domain my_server:9443 -username isadmin -password isadmin -archive c:\dca.isx -dca '/Namespace1/DataClass1.dc'The following command exports the data class DataClass2, and all of the data collection analysis assets and data field analysis objects that are in the projects Analysis1 and Analysis2.
export -domain my_server:9443 -username isadmin -password isadmin -archive c:\dca.isx -dca '/Namespace1/DataClass2.dc /Analysis1.als /Analysis2.als'The following command exports all the data classes using the -batchAssets option.
export –domain my-server:9443 –username isadmin –password isadmin -archive "c:\dca.isx" –dca '/*/*.dc -batchAssets 20'