Import a table definition using a command line utility

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

Post Reply
Umbix62
Participant
Posts: 79
Joined: Mon Jan 16, 2006 2:47 pm

Import a table definition using a command line utility

Post by Umbix62 »

Good morning

I'm looking for a method to import a table def using an external utility to run in the command line as, for example, dsojob. May I do that?

Thank you very much

Umberto
ArndW
Participant
Posts: 16318
Joined: Tue Nov 16, 2004 9:08 am
Location: Germany
Contact:

Post by ArndW »

Umberto - you are out of luck, such a tool doesn't exist
Umbix62
Participant
Posts: 79
Joined: Mon Jan 16, 2006 2:47 pm

Post by Umbix62 »

ArndW wrote:Umberto - you are out of luck, such a tool doesn't exist ...

Ok, I have supposed it. Is it possible via API?
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Are you looking for a mainframe command line utility, or a server command line utility? The latter does not exist. I suspect there's not going to be one on the mainframe either, as there really isn't the same concept of a command line, but generating the COBOL FD or DCLGen is definitely possible. But that doesn't get it in to your DataStage Repository.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
kduke
Charter Member
Charter Member
Posts: 5227
Joined: Thu May 29, 2003 9:47 am
Location: Dallas, TX
Contact:

Post by kduke »

There is a import command which will import any DSX file. The dsimport.exe command will do the trick. You need to be able to create a DSX file. I am not sure it can import XML files but I would try it if I was you. Ray posted the program to create XML files from DS_METADATA the internal table of DataStage. You might be able to write your own if you really need this concept.
Mamu Kim
Post Reply