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.
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
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