Function or variable to get table name and field name

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
tsktsk123
Participant
Posts: 32
Joined: Thu Dec 25, 2003 11:59 am

Function or variable to get table name and field name

Post by tsktsk123 »

and field name of that table in its condition. Appreciate greatly if you could let me know about the variable or function in DS to get table name and Field name

Thanking in advance !!
khanparwaz
Participant
Posts: 60
Joined: Tue Jul 12, 2005 3:34 am

Re: Function or variable to get table name and field name

Post by khanparwaz »

tsktsk123 wrote:and field name of that table in its condition. Appreciate greatly if you could let me know about the variable or function in DS to get table name and Field name

Thanking in advance !!
I did not get your question...

Do you want to extract data from any database using any DSPX stage??

If so then you need to know which table you want to extract data from.

Please elaborate the question!
tsktsk123
Participant
Posts: 32
Joined: Thu Dec 25, 2003 11:59 am

Post by tsktsk123 »

My requirement is to extract the table name and field name from the database (Oracle) of the source record. We have not stored the table names and fields in the database.

i.e.say my table name is EMP which has the following fields EMP_NO, EMP_NAME and EMP_DEPT.

I just wanted to know is there any function or variable which can get the table name & field name i.e function should return the table name as EMP and the field names EMP_NO, EMP_NAME and EMP_DEPT.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

There is nothing directly available within a DataStage stage. You can code using the ODBC API - in which case the function is SQLTables() to retrieve a list of tables (optionally filtering with a wildcard name).
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
Post Reply