Tuesday, January 6, 2015

Datastage Job Backup via Client and Server

I would like provide the information on taking Datastage backup using Unix & Windows,

Server : ( UNIX )

<IBM Server installation Path>/InformationSever/server/DSengine/istool export –domain <Domain:port> -username <Login User name> -password <Login Password> -archive "<Path to store the exported file>"  -datastage  ' "Domain:port/$PROJECTNAME/Jobs/*/*.*"  '

Client : ( Windows )

@Echo off

SET DSExportCMD="C:\Program Files\Ascential\DataStage7.5.1\dscmdexport.exe"
echo a=%DSExportCMD%
REM ===== Setting Parameter ===============
SET DParams=/H=Server /U=username /P=password ProjectName
REM ===============
SET DSExportFileName=C:\DSExports\Dev\filename.dsx
echo DSExportFileName1=%DSExportFileName%
REM ==Run The Backup ==============
%DSExportCMD% %DParams% %DSExportFileName%

save as .bat and run on the windows PC to take the backup of a project.

No comments:

Post a Comment