Page 1 of 1

EXPORTING ROUTINE

Posted: Thu Oct 04, 2007 3:04 pm
by sunil_acc
Hello!
I am stuck up wth a abnormal stuff. I am exporting all jobs (as individual dsx). It goes pretty good. but when i gave thought to import a routinr in same fashion, guess what :( . Gone through a lot of mails but no luck.

Anybody has any clue to this?

Posted: Thu Oct 04, 2007 3:35 pm
by DSguru2B
I did not get your question. You are having trouble exporting or importing a single routine?

Posted: Mon Oct 08, 2007 6:08 pm
by sunil_acc
DSguru2B wrote:I did not get your question. You are having trouble exporting or importing a single routine?
I want to import a routine as a single commodity not as part of whole project!

Posted: Mon Oct 08, 2007 6:43 pm
by narasimha
While exporting the routine, in the Options tab - select "By individual component".

HTH

Posted: Mon Oct 08, 2007 6:45 pm
by ArndW
Currently neither the export nor import allow single routines to be selected.

Posted: Mon Oct 08, 2007 8:46 pm
by ray.wurlod
It can be done, as follows. When you import, choose Import Selected option button. The entire DSX file will be read into memory, but not imported. You can then select the individual component(s) you wish to import, before clicking the Import button. Note that executables may have been exported separately, so you may need to select both the job/routine and its executable to import the complete thing.

Posted: Mon Oct 08, 2007 9:46 pm
by ArndW
Ray,

I tried that before posting, since I had a vague memory that I had done this before but no routines showed up in my list, this is at 7.5. Are you using V8?

Posted: Mon Oct 08, 2007 11:03 pm
by ray.wurlod
Can do either at the moment. Just tried it on 7.5.1 and the Routines are there in the export file (and can be imported). Try this export file

Posted: Mon Oct 08, 2007 11:08 pm
by ArndW
I just checked my "full export" file - which didn't contain object code or routines ;)

Re: EXPORTING ROUTINE

Posted: Mon Oct 08, 2007 11:25 pm
by vanathy
select DataStage Component in the export list, in that go to options tab select by indivijual component. then switch over to components tab. check only the routine box. in that you will be able to see the indivijual routines and you can select which routine that you want to export. if needed you can check the source code also.

Posted: Tue Oct 09, 2007 8:22 am
by sunil_acc
Well,
thanks for all you comment! i can use manager and select all those tabs and check boxes as told by you. But the need is i need some command (as dsexport) to export a routine on the client machine. On top i need only that routine to be exported. I have dne this for job (can export individual job), but need to do same for routine!!!! :roll:

Posted: Tue Oct 09, 2007 2:06 pm
by ray.wurlod
Exporting a single routine using the command line is not possible.

A possible solution and a way to make this easier...

Posted: Tue Oct 09, 2007 4:37 pm
by jdmiceli
Hi all,

I recently posted a bunch of my Perl utilities I have written. One of them will take a single DSX file and split each component part out into their own file. I did this for Release Management and external code versioning that we use at my company. If I remember correctly, it will also split routines and the like into individual files. So, instead of exporting jobs one by one, you could do them all at once and this script will split them for you.

We have been using it with no issues for months now, so I'm confident it should work for you. Follow this link to get the code: viewtopic.php?t=113429&highlight=.

The script you want is called DSX_Cutter.pl. If you have any questions on it that are not answered in the documentation (located in the header of the script) let me know and I'll try to answer your questions.

Bestest,