Exporting jobs through Commad prompt

A forum for discussing DataStage<sup>®</sup> basics. If you're not sure where your question goes, start here.

Moderators: chulett, rschirm, roy

Post Reply
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Exporting jobs through Commad prompt

Post by AmeyJoshi14 »

Hi,
We want to export four jobs and want to store it in one.dsx file, is it possible with command prompt?
We do not want to use Datastage Manger for the same.. :?
We have searched in "dsjob" but there is only import option.no export option is present.. :shock:
Can anybody help us out?
Thanks In Advance!!
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

You could investigate dsexport.exe command.

There is nothing on the server.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
priyadarshikunal
Premium Member
Premium Member
Posts: 1735
Joined: Thu Mar 01, 2007 5:44 am
Location: Troy, MI

Post by priyadarshikunal »

you can use this command its there in 8x but dont know its there in 7x or not

Code: Select all

cd path of dscmdexport.exe

dscmdexport /D=ServerIP:9080 /H=ServerIP:31801 /U=UserName /P=password ServerName/ProjectName ProjectExport.dsx
you can put it in a batch file and then schedule it

if you want only few jobs from a project then search for some options of dscmdexport

regards
Priyadarshi Kunal

Genius may have its limitations, but stupidity is not thus handicapped. :wink:
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Post by AmeyJoshi14 »

Thanks

But where can find this ".exe " :oops:
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Either by searching or by looking wherever you installed the DataStage client on your PC. Typically C:\Program Files\Ascential\DataStage...
-craig

"You can never have too many knives" -- Logan Nine Fingers
etlbets
Premium Member
Premium Member
Posts: 25
Joined: Wed Jul 25, 2007 8:51 am

Script to export one at a time and insert into a single dsx

Post by etlbets »

I have written a BAT script that takes a list of jobs and exports them one at a time into a a single dsx on your PC is this what you are looking for.
etlbets
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

AmeyJoshi14 wrote: As per the details in the above post i have searched for dsexport and dscmdexport in '/tools/Ascential/DataStage', but any of the "export" commands are not present in the above path.
Can anybody please tell me why this commands are not present in our environment? :?
UNIX pathnames? These executables are on the client machine, not on the server machine.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
AmeyJoshi14
Participant
Posts: 334
Joined: Fri Dec 01, 2006 5:17 am
Location: Texas

Re: Script to export one at a time and insert into a single

Post by AmeyJoshi14 »

etlbets wrote:I have written a BAT script that takes a list of jobs and exports them one at a time into a a single dsx on your PC is this what you are looking for.
Hi,
Yes can you please provide me the script ,so that we can implement the same :D
Thanks in Advance! 8)
http://findingjobsindatastage.blogspot.com/
Theory is when you know all and nothing works. Practice is when all works and nobody knows why. In this case we have put together theory and practice: nothing works. and nobody knows why! (Albert Einstein)
Post Reply