Export DS jobs using command line in UNIX

Post questions here relative to DataStage Server Edition for such areas as Server job design, DS Basic, Routines, Job Sequences, etc.

Moderators: chulett, rschirm, roy

Post Reply
vskr72
Premium Member
Premium Member
Posts: 128
Joined: Wed Apr 28, 2004 9:36 pm

Export DS jobs using command line in UNIX

Post by vskr72 »

I am developing a script which can export all ds jobs (.dsx) to automate backup process.

Please provide me command with parameters to execute in shell script and create .dsx file .

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

Post by ray.wurlod »

It is not possible.

Export is initiated from the client, which is Windows. You can use dscmdexport.exe or dsexport.exe.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
umamahes
Premium Member
Premium Member
Posts: 110
Joined: Tue Jul 04, 2006 9:08 pm

Post by umamahes »

You can export the jobs form the client machine by using following command

dscmdexport [/H][/U][/P][/O] project filepath [/V]

/H Host name.
/U User name.
/P Password.
/O Omit flag.
project Specifies the project name.
filepath Specifies the export file name.
/V Verbose. Default to false.

Note that project name must be specifed.


you can use the following command also to export the each job

DSExport /U=%UserName% /P=%Password% /H=%Host% /JOB=JobName %Project% FileName
HI
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

You will need to use dsjob.exe -ljobs to get a list of jobs.
Mamu Kim
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

The subject specifies "in UNIX". I stand by my original assertion.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I saw your answer and agree but if they really want to script it then Windows is the only solution.
Mamu Kim
Post Reply