Export Whole Datastage Project in Unix Script

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

Moderators: chulett, rschirm, roy

mac4rfree85
Participant
Posts: 126
Joined: Thu Jul 01, 2010 11:39 pm

Export Whole Datastage Project in Unix Script

Post by mac4rfree85 »

Hi Guys,

I am using Datastage 8.5. I am writing a script which will run every sunday to export the whole datastage project.

Is there a option "-export" in dsjob command???

Or how to export the whole project from unix prompt.

Cheers!!!!
Mac4rfree
meet_deb85
Premium Member
Premium Member
Posts: 132
Joined: Tue Sep 04, 2007 11:38 am
Location: NOIDA

Post by meet_deb85 »

dsjob as the name suggests is used for job related activities like running,reseting the job etc.
meet_deb85
Premium Member
Premium Member
Posts: 132
Joined: Tue Sep 04, 2007 11:38 am
Location: NOIDA

Post by meet_deb85 »

Check the options with istool "-datastage" option.
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

Arvind
arvind_ds
Participant
Posts: 428
Joined: Thu Aug 16, 2007 11:38 pm
Location: Manali

Post by arvind_ds »

FROM UNIX CLI : You can use the istool command line interface (CLI) to export assets to an archive file. The default extension of the archive file is .isx.

istool export <specify your export options here>
Arvind
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

There are examples of istool export syntax on this web site as well as in the Admin Guide. The dsjob command will not export a project.
Choose a job you love, and you will never have to work a day in your life. - Confucius
fmou
Participant
Posts: 124
Joined: Sat May 28, 2011 9:48 pm

Post by fmou »

The default extension of the archive file is .isx.
Is the .isx archive file still text based or now binary?

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

Post by chulett »

From what I understand (but never tried) it is basically a 'compressed' dsx file and you can unzip it.
-craig

"You can never have too many knives" -- Logan Nine Fingers
eph
Premium Member
Premium Member
Posts: 110
Joined: Mon Oct 18, 2010 10:25 am

Post by eph »

Hi,

As I've seen, it's a zip containing xml exports. The odd thing is that this xml export is different from the Desiner one (xml not formated with the same xml tags).

From my experience, I got less problems with isx than dsx, at least for huge exports (whole projet in one file). One can also use the IS Manager to create a backup package, it also use isx files, though I don't know if you can call the manager using command line or script.

Eric
fmou
Participant
Posts: 124
Joined: Sat May 28, 2011 9:48 pm

Post by fmou »

Thanks, chulett & eph .
mark1024
Participant
Posts: 9
Joined: Mon Nov 07, 2011 12:23 pm

Re: Export Whole Datastage Project in Unix Script

Post by mark1024 »

I do the same thing, but use it for promotion between environments

istool export -archive Quickwin_jobs.dsx -domain linux50 -u username -p "password -ds ' "linux50/esa_dev/Jobs/QWin_test/*/*.*" -includ
edependent -incexec'
. Dev to test and to prod.

I include the dependents and the executable. that way the other environments don't have to recompile.

Cron job does the backup. putting it to tape.
Mark THomas
Data Architect
IBM GBS
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

DSCMDEXPORT can also be used..
pandeeswaran
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

A couple of points.

The dscmdexport command is only available on the client. Therefore it can not be used in a UNIX script.

If you're exporting the whole project (*/*.*) then -includedependent is redundant.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
pandeesh
Premium Member
Premium Member
Posts: 1399
Joined: Sun Oct 24, 2010 5:15 am
Location: CHENNAI, TAMIL NADU

Post by pandeesh »

Yes .he can write a windows batch script and schedule the same
pandeeswaran
qt_ky
Premium Member
Premium Member
Posts: 2895
Joined: Wed Aug 03, 2011 6:16 am
Location: USA

Post by qt_ky »

Yes, but take a look at the name of this topic... dscmdexport is... off-topic.
Choose a job you love, and you will never have to work a day in your life. - Confucius
Post Reply