about Datastage Job Backup Automatically

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

about Datastage Job Backup Automatically

Post by mandyli »

Hi


In our project I am taking every week backup of Datastage project using export oprion in DS manager.

my question is any other way automatically take backup of DS project.
b'cus i am planning to write script or routine for taking backup. please help me out for this.


Thanks
Man
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Quite a few sites of which I am aware use dscmdexport from a BAT file to take an export of their projects. This can be automated through the AT scheduler.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

There's quite a nice backup script posted at ADN, if you have a logon there.
-craig

"You can never have too many knives" -- Logan Nine Fingers
mandyli
Premium Member
Premium Member
Posts: 898
Joined: Wed May 26, 2004 10:45 pm
Location: Chicago

Post by mandyli »

Hi Chulett,

Thanks for your mail. i amnot able to login ADN b'cus i amnot memeber IBM customer. any other way .
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I modified it a little bit and posted it on my tips page.
Mamu Kim
Lotus26
Premium Member
Premium Member
Posts: 48
Joined: Tue Jul 13, 2004 2:09 pm

Post by Lotus26 »

kduke wrote:I modified it a little bit and posted it on my tips page.

Duke

Can you please tell me how to use this Script. Thanks in Advance

Regards
Lotus
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I create a little batch file like this:

Code: Select all

:: -----------------------------------------------------------------
:: Host is server name
:: User is username to use to attach to DataStage
:: Password   is password to use to attach to DataStage
:: BackupDir is the directory to place the backed up project in
:: -----------------------------------------------------------------
:: Dwn_ExecTCL.exe -n -sMyProject -uuserid -puserPwd UNLOCK READULOCK UV
DataStageBackup.bat MyProject userid userPwd c:\DataStage\KimD\Backups
Uncomment Dwn_ExecTCL.exe if you want to unlock all your jobs. This command needs to be in the folder. There are several posts on this. You need to edit the batch file and figure it out.
Mamu Kim
Post Reply