I'm having trouble using the 'dscmdimport.ext' command. When I run it from the command line, specifying as below (where TEST is the project and 'D:\Apps\DataStage_Client\ribs_xfm_sos_service_load.dsx' is the filepath):
dscmdimport /H <host> /U <username> /P <password> TEST D:\Apps\DataStage_Client\ribs_xfm_sos_service_load.dsx /V
I get this message:
Attaching to '<host>' ...
dscmdimport aborted:
Failed to attach to the project
Any suggestions as to why it didn't work? The empty project TEST was just created, without protections.
Datastage v752s01 Import error (importing from command line)
Moderators: chulett, rschirm, roy
-
ray.wurlod
- Participant
- Posts: 54595
- Joined: Wed Oct 23, 2002 10:52 pm
- Location: Sydney, Australia
- Contact:
Code: Select all
SET DSImportCmd=C:\Progra~1\Ascential\DataStage7.5.1\dsimport.exe
Code: Select all
for /F "tokens=1" %%i in (%DsxList%) do (
ECHO Importing %%i to Project: %Project% on Host: %Host%
echo %DSImportCmd% /H=%Host% /U=%User% /P=%Password% %Project% %ProjectDir%\%%i >> %LogFileName%
%DSImportCmd% /H=%Host% /U=%User% /P=%Password% %Project% %ProjectDir%\%%i >> %LogFileName%
IF NOT %ERRORLEVEL%==0 GOTO ProjFail
ECHO. >> %LogFileName%
ECHO *** Completed Import for Project: %Project% on Host: %Host% >> %LogFileName%
ECHO from File: %ProjectDir%\%%i >> %LogFileName%
ECHO. >> %LogFileName%
)
Mamu Kim
You need to give '=' after the parameters like /H /U /P.
Code: Select all
dscmdimport /H=host /U=username /P=password TEST D:\Apps\DataStage_Client\ribs_xfm_sos_service_load.dsx /VImpossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
