Tool to export jobs without their related shared container

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

holymac
Participant
Posts: 25
Joined: Sun Jan 08, 2006 9:40 pm

Tool to export jobs without their related shared container

Post by holymac »

Dear All,

Our warehouse project has about 3000 jobs and we need to export the job designs[not the executables] individually without their related shared containers included.

I am using a tool to export the jobs individually which uses "dsexport" but it is including the shared containers as well.

Is there a way for me to export this 3000 jobs separately without including the shared containers apart from exporting them one by one using DS Manager?

Thank you in advance.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

I posted some new scripts on the 2 links below my sig. The new script was DataStageExport.bat. Do a search for this. Basically it requires a JobList.txt file to be setup in a folder with the project name. This list of jobs will get exported one at a time.

There is a similar command for importing these called DataStageImport.bat. This command will import all dsx files in this directory. This could be used to promote these jobs from dev to test to prod.
Mamu Kim
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There is also a Perl script which someone posted to split a full export into one per job. I think it is called DsxParse.pl.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

"dsx cutter" from what I recall. Oh wait, that was Wolfgang's. You're right, I believe, I seem to recall seeing a goodly amount of Perl posted here somewhere.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Cowmix
Charter Member
Charter Member
Posts: 26
Joined: Sat Apr 01, 2006 2:11 am

Post by Cowmix »

kduke wrote:There is also a Perl script which someone posted to split a full export into one per job. I think it is called DsxParse.pl.
BTW.. I think I just found an error with the ParseDSX.pl that might be a show-stopper for some people out there. The error (again.. I think) is if you have a line in your DSX that has 'special charaters' in it, the parser seems to toss it out.. for instance:

Code: Select all

         Default "$UNSET"
 
or

Code: Select all

         Default "QQW@G;N1?9GO"
Both those lines, for instance, were dropped in a DSX dump I had it recently process.
Cowmix
Charter Member
Charter Member
Posts: 26
Joined: Sat Apr 01, 2006 2:11 am

Re: Tool to export jobs without their related shared contain

Post by Cowmix »

holymac wrote:Dear All,

Our warehouse project has about 3000 jobs and we need to export the job designs[not the executables] individually without their related shared containers included.

I am using a tool to export the jobs individually which uses "dsexport" but it is including the shared containers as well.

Is there a way for me to export this 3000 jobs separately without including the shared containers apart from exporting them one by one using DS Manager?

Thank you in advance.
"dscmdexport.exe" exports everything, but in order so the jobs are always first.. Can't you just cut away everything below where the job export ends?
jdmiceli
Premium Member
Premium Member
Posts: 309
Joined: Wed Feb 22, 2006 10:03 am
Location: Urbandale, IA

Post by jdmiceli »

Follow this link for a Perl parser that should have no show stoppers (famous last words of course!):

viewtopic.php?t=113429&highlight=perl

Bestest!
Bestest!

John Miceli
System Specialist, MCP, MCDBA
Berkley Technology Services


"Good Morning. This is God. I will be handling all your problems today. I will not need your help. So have a great day!"
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Preston took one of these and cut out the dependent objects so now our migration script can run unattended. Very cool. We do not need to click on No to not overwrite the shared containers.
Mamu Kim
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

kduke wrote:I posted some new scripts on the 2 links below my sig. The new script was DataStageExport.bat. Do a search for this. Basically it requires a JobList.txt file to be setup in a folder with the project name. This list of jobs will get exported one at a time.

There is a similar command for importing these called DataStageImport.bat. This command will import all dsx files in this directory. This could be used to promote these jobs from dev to test to prod.
Duke:
I am always getting the error like the below one. Can you please tell me how to setup the directory structure? I am planning to export a whole project using your script. If this runs i want to use it for other projects too.

Bad/Non-existing directory: D:\DatastageBackups\KiranTest

Please ensure that you have permission to access/create directories
and files. Also ensure that directory listed exists.

The syntax of the command is incorrect.


Thanks
kirankota79
Premium Member
Premium Member
Posts: 315
Joined: Tue Oct 31, 2006 3:38 pm

Post by kirankota79 »

just to let you know..i am doing this for parallel jobs
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There's a great tool called DataStage Manager that can do precisely what you require.
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 »

Wow... you can schedule the Manager to run unattended and export all projects on a Server to date stamped directories? :shock:

( :wink: )
-craig

"You can never have too many knives" -- Logan Nine Fingers
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Operator.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
DS_SUPPORT
Premium Member
Premium Member
Posts: 232
Joined: Fri Aug 04, 2006 1:20 am
Location: Bangalore

Post by DS_SUPPORT »

How we can schedule the exports from Manager? Can you refer to any documents?
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

I was being sarcastic. And did you not see Ray's reply? You 'schedule' it by having an Operator perform the function on a regular basis.
-craig

"You can never have too many knives" -- Logan Nine Fingers
Post Reply