Export command for InfoSphere DataStage and QualityStage assets
You can use the istool command-line interface (CLI) to export assets to an archive file. The preferred extension of the archive file is .isx.
Purpose
Use the DataStage command option with the istool export command to export IBM® InfoSphere® DataStage® and QualityStage® assets to an archive file on the local file system. You can then use the istool import command with the DataStage command option to restore the exported assets into a different IBM InfoSphere Information Server metadata repository.
To export all assets of all types, see Moving all assets from one metadata repository to another.
Prerequisites
You must have an InfoSphere DataStage and QualityStage role that grants you permission to edit the assets that you are exporting.
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 to 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]
[-preview ] | [-responseFile "file_name_and_path"]
[-abortIfError number_of_errors]
-datastage ' "dsServer[:port]/project/folder/asset_name.suffix"
[ -base "server[:port]/project"]
[-includedependent]
[-nodesign]
[-includeexecutable]
'
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.
- -preview | -pre
- Specify this option to preview the export operation without exporting the assets.
- -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 -ds command. Not supported with the -preview parameter. For more information, see Using a response file with istool export and istool import commands.
- -abortIfError | -abort number_of_errors
- Stops the export after the specified number of errors.
- -datastage | -ds' "dsServer/project/folder/asset_name.suffix" '
- Required. Specifies that InfoSphere DataStage and QualityStage assets are to be exported. Specifies the paths of assets that are to be added to the export file. For more information, see Asset paths for InfoSphere DataStage and QualityStage assets. You can copy and paste asset names from the InfoSphere Information Server manager.
Exit status
A return value of 0 indicates successful completion, any other value indicates failure. The list of exit codes is shown in the command help. Enter export -help to see the list of possible exit codes for the export command.
Error handling
When you are exporting more than one object, a failure does not interrupt the operation. If only one object is successfully exported, an archive file is still created. If no objects are exported, no archive file is created. The exit status reports an error if one or more objects cannot be exported.Examples
export -domain IIDEMO5 -username admin -password admin -archive
c:\ds_archive.isx -maxArchiveSize 500 -ds 'IIDEMO5/dstage1/*/*.*'
export –domain sliver:9443 -username user1 -password pass1
-archive "c:\arc.isx" -datastage ' "sliver:5000/Proj/Jobs/Mine/ajob.pjb"
"serv2/anotherProj/folder2/*/*.sjb" '
export -domain sliver:9443 -username user1 -password pass1
-archive "c:\arc.isx" -updatearchive -datastage '-base="serv2/anotherProj"
"tabledefinitions/*.tbd" "Jobs/Pivotal/*.pjb" -includedependent'
export -domain sliver:9443 -username user1 -password pass1
-archive "c:\runtime.isx" -ds '-nodesign -includeexecutable
"sliver:5000/dstage/Jobs/*.pjb" '