importing ODBC

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
dr46014
Participant
Posts: 59
Joined: Fri Dec 08, 2006 11:09 am
Location: bhubaneswar

importing ODBC

Post by dr46014 »

hi all
this is rather a more theoritical question than a practical one.when we import table defination as ODBC we specify the DSN,user name,password and table name.so the column defination is imported and stored in the repository.but there is an option to create the table in the database from DataStage interface.in such a case we specify the DDL and table is created.in that case no meta data is imported and stored in the repository.so how the engine works i could not understand.please guide me that is it mandatory to import everything before using that in the job??
we w dont import and manually specify the table definations what will be the problem.
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

Its not mandate to import the Table definition for the job to process. By importing the table definition, you are storing a copy of the layout in the Datastage metadata repository. So you can re use it, and will ease your job to specify the metadata for a large tables.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

When you click the GetSQLInfo button, or when you click the Create DDL button, the ODBC stage interrogates the data source for its syntax rules. This means that the table definition created is syntactically legitimate (most of the time - some drivers report inaccurately).

Whenever you generate metadata, it is recommended best practice to click Save on the Columns grid to store the table definition into the Repository. Change the category from Saved\StageName to ODBC\DSN ideally during the Save dialog, and remember to visit the Repository to add a short description to the saved table definition, so as to make life easier for future developers and maintainers.
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
dr46014
Participant
Posts: 59
Joined: Fri Dec 08, 2006 11:09 am
Location: bhubaneswar

Post by dr46014 »

thank you for your response.
can you plz tell me in the table defination why a data element column and display column is there.what are the significance of those columns
dr46014
Participant
Posts: 59
Joined: Fri Dec 08, 2006 11:09 am
Location: bhubaneswar

Post by dr46014 »

i am new to this forum.
i am not able to read the whole post.a part of the post is getting truncated.
why is it so...........
chulett
Charter Member
Charter Member
Posts: 43085
Joined: Tue Nov 12, 2002 4:34 pm
Location: Denver, CO

Post by chulett »

Because it is one of Ray's patented Premium Posts.
-craig

"You can never have too many knives" -- Logan Nine Fingers
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

If you are refering to Length and Display, Length is the actual length defined for that field, and Display is the length you specify for the datastage so show up the number of digit when you do view Data.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

Search for Data Element will reveal more. A Data Element is like a luggage tag for data; you can record, for example, that this ten digit number is a tax ID, whereas this ten digit number is a telephone number and yet another is a part number. In short, business metadata.

Let's say you have a data element called Money. Then Usage Analysis can quickly show all the jobs (and Transforms) that process money.

With tools like IBM WebSphere Business Glossary now in the mix, I predict that the use of Data Elements to map business metadata to technical metadata, and therefore more rigorously to define business rules (including silly-sounding ones like preventing BI tools from presenting average telephone numbers) will be on the increase.
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