Import multiple table definitions using orchdbutil

Post questions here relative to DataStage Enterprise/PX Edition for such areas as Parallel job design, Parallel datasets, BuildOps, Wrappers, etc.

Moderators: chulett, rschirm, roy

Post Reply
kiranh_1214
Premium Member
Premium Member
Posts: 47
Joined: Tue Sep 13, 2005 4:28 am

Import multiple table definitions using orchdbutil

Post by kiranh_1214 »

HI Team,

Requirement: Need to import table definitions of multiple tables and then convert the table definitions into xml.

Existing way which we are doing: we are using the Import>>>Table Definitions>>ODBC to import the table definitions.

Then we are exporting the same table definition and saving it on our local machine as .xml then moving it to our UNIX path.

I wanted to automate this process.

I have used orchdbutil which is printing the table definitions on the screen.
Not sure how to save the output of the orchdbutil command as an object in DataStage repository.

I tried saving the file as .isx and tried to import but in vain.

Please request you to guide me.
Kiran Kumar
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

Why not take a full export which I assume you do nightly and use the Perl script to cut exports into files and modify it to do table definitions. Do a search for it.It cuts out jobs into one dsx per job. I am sure you can get what you need this way.
Mamu Kim
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Assuming this post is the one: viewtopic.php?t=113429
-craig

"You can never have too many knives" -- Logan Nine Fingers
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

That is the one. Nice work Craig.
Mamu Kim
Post Reply