Selective Command Line Export?

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

patonp
Premium Member
Premium Member
Posts: 110
Joined: Thu Mar 11, 2004 7:59 am
Location: Toronto, ON

Selective Command Line Export?

Post by patonp »

Although the dscmdexport command provides a means to export an entire project, I would like to selectively export components. Is there a facility within DataStage that will allow me to do this without using the GUI found in Manager?

Thanks!

Peter
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Not that I am aware of. :cry:
-craig

"You can never have too many knives" -- Logan Nine Fingers
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

DSExport command can also export individual jobs.

Thanks
kcbland
Participant
Posts: 5208
Joined: Wed Jan 15, 2003 8:56 am
Location: Lutz, FL
Contact:

Post by kcbland »

kaps wrote:DSExport command can also export individual jobs.

Thanks
Care to share the exact command line syntax for how you accomplished this?
Kenneth Bland

Rank: Sempai
Belt: First degree black
Fight name: Captain Hook
Signature knockout: right upper cut followed by left hook
Signature submission: Crucifix combined with leg triangle
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

Syntax is as follows:

DSExport /U=%UserName% /P=%Password% /H=%Host% /JOB=JobName %Project% FileName

Thanks
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Post by jzparad »

Very interesting.

I haven't found this documented anywhere but it works (on Windows anyway)!

Doesn't work for dscmdexport only dsexport.
Jim Paradies
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Windows as in on the client or a Windows Server install only?
-craig

"You can never have too many knives" -- Logan Nine Fingers
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Post by jzparad »

DataStage 7.5 running on Windows!

And I'm running the client from a Windows machine as well (in fact the same machine).
Jim Paradies
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Looks like this is a Client command and may only work if the Server is running on the same machine. I'll have to experiment a little more with this from the office tomorrow. Too many other fish to fry tonight. :wink:
-craig

"You can never have too many knives" -- Logan Nine Fingers
jzparad
Charter Member
Charter Member
Posts: 151
Joined: Thu Apr 01, 2004 9:37 pm

Post by jzparad »

Please let us know how you go!
Jim Paradies
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

HI,

Yes the same works in PX (Sever in Unix and Clinet in Wondows) as well :!:

-Kumar
Andal
Participant
Posts: 124
Joined: Thu Dec 02, 2004 6:24 am
Location: Bangalore, India

Post by Andal »

This Command will work on windows Client. We dont require the Server to be installed. I am able to export the jobs from the server which is in different location.

The problem with this command is , if we used any shared conatiners in the job, then it will import the code for shared containers as well. But if we export from Manager we wont get this, unless we check it expicitly.

And we wont get the job executables if we export the jobs from command line.
Please refer Here for More Information.
Rgds
Anand
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

This is client command. DataStage does not need to be on windows.
This works even if DataStage server is in unix. But we need to run this command from client machine.

Thanks
patonp
Premium Member
Premium Member
Posts: 110
Joined: Thu Mar 11, 2004 7:59 am
Location: Toronto, ON

Post by patonp »

This command seems to work well for what I'm trying to accomplish. I do, however, have one more question...

Is there any way I can specify more than one job to be exported using this command? Ideally, I'd like to specify a few jobs to be exported into a single dsx file.

Thanks again,

Peter
kaps
Participant
Posts: 452
Joined: Tue May 10, 2005 12:36 pm

Post by kaps »

Using the same command answer is NO. but you can accomplish what you want with the help of small batch file.

Thanks
Post Reply