The following is the import and export of Datastage8.5 command line, direct login server execute the following command. Instead of importing and exporting DataStage clients, the advantage of using a command-line approach is that you can use shell scripts to import and export the command.
1. Import
1.1 Import new industry (not existing in the original work space)
$DSHOME/.. /.. /clients/istools/cli/istool import-dom dpapp01 - u user name-p password -ar /job path/job name to import. ISX -ds ' " DPAPP01/BRCB_EDP"'
Explain:
DPAPP01: host name (required to be configured in the host file for Windows)
For example, the configuration in the host file is 192.168.1.1 DPAPP01 so that when you import and export the command, it will be written on the back of-dom . DPAPP01
-u username-p password: User name and password
/job path/job name to import. ISX : The DS job in the ISX format can be exported via the following Export command
BRCB_EDP: indicates the project to be imported (optional project when landing to DataStage)
1.2 Importing and replacing an existing job
$DSHOME/.. /.. /clients/istools/cli/istool import-dom dpapp01 -u user name -p password -ar /job path/job name to import. ISX c5>-replace -ds ' "dpapp01/brcb_edp" '
Explain:
DPAPP01: host name (required to be configured in the host file for Windows)
For example, the configuration in the host file is 192.168.1.1 DPAPP01 so that when you import and export the command, it will be written on the dpapp01 after-dom.
- u user name-P password : user name and password
/job path/job name to import. ISX : Name of the import job (ISX format)
BRCB_EDP: indicates the project to be imported (optional project when landing to DataStage)
Note:-replace best written in front of-ds
2. Export
$DSHOME/.. /.. /clients/istools/cli/istool export-dom dpapp01 -u user name-p password -ar /path/job name to export to. ISX - DS '-incexec 'dpapp01/DS job on the server path/job name . PJB "'
Summarize:
1. When importing to the server, you must first upload to the server, and then import the execution
2. After compiling and executing the pass, you can export again.
Datastage8.5 Import and Export DS job example