Importing table definitions from a data set in command line

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
rosecity
Participant
Posts: 25
Joined: Wed Apr 04, 2012 10:39 am

Importing table definitions from a data set in command line

Post by rosecity »

Hello,

I was wondering if it is possible to import a table definition from a data set from the command line, either through Orchestrate Schema Definitions or any other approach.

I believe orchdbutil only works with databases and not data sets.

Thank you.
asorrell
Posts: 1707
Joined: Fri Apr 04, 2003 2:00 pm
Location: Colleyville, Texas

Post by asorrell »

orchadmin...

https://www.ibm.com/developerworks/comm ... ge?lang=en

Check out #4... the -s option is what I think you need.
Andy Sorrell
Certified DataStage Consultant
IBM Analytics Champion 2009 - 2020
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I don't often disagree with Andy, but this time alas I do. He's correct to say that orchadmin -s will display the schema of the Data Set, but incorrect to assume that it will create a DataStage table definition from that schema.

I'm not aware of any command line mechanism for doing this.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
rosecity
Participant
Posts: 25
Joined: Wed Apr 04, 2012 10:39 am

Post by rosecity »

Thank you for the help. The only solution I can think of would be to create a script which does the following:

1) Call orchadmin -s to output data set schema
2) Convert the output to .dsx format
3) Import from .dsx file
Post Reply