dscmdexport command

The dscmdexport command is a command-line application that you use to export InfoSphere® DataStage® components to a file from the command line. You can run this command unattended.

Syntax

The dscmdexport command includes the following syntax. To view help options for the command, enter dscmdexport at the command prompt.

dscmdexport /AF=authfile | 
/D=domain /H=hostname [/U=username [/P=password]]
project pathname
/V
authfile
Name of the encrypted credentials file that contains the connection details.
domain | domain:port_number
Name of the application server. This parameter can also have a port number.
hostname
Host name for the InfoSphere Information Server engine where you are exporting the file to.
username
Name of the user that is connecting to the application server.
password
Password for the username that is connecting to the application server.
project
Name of the project that you are exporting components from.
pathname
Full path name of the file that you are exporting.
/V
Flag that toggles whether the verbose option is used.

If you specify only the domain and host name details, you are prompted for the user name and password. (The password is hidden as you type in the command window.) If you specify the domain, host name, and user name details, you are prompted for the password.

The following command exports the dstage2 project from the R101 server to the dstage2.dsx file:

dscmdexport /D=domain:9080 /H=R101 /U=billg /P=paddock 
dstage2 C:\temp\dstage2.dsx

Messages from the export are sent to the console by default, but can be redirected to a file by using the greater than symbol (>). In the following example, the messages from the export are sent to the C:\temp\exportlog directory:

dscmdexport /D=domain:9080 /H=R101 /U=billg /P=paddock dstage99 
C:\temp\project99.dsx /V  > C:\temp\exportlog