what's the difference between SQL type and Data Element

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
fyaqq
Participant
Posts: 43
Joined: Thu Aug 31, 2006 5:05 pm

what's the difference between SQL type and Data Element

Post by fyaqq »

in the transformer stage? Can someone explain it in a little bit details?
Thanks.
ray.wurlod
Participant
Posts: 54607
Joined: Wed Oct 23, 2002 10:52 pm
Location: Sydney, Australia
Contact:

Post by ray.wurlod »

I am going to presume you are happy with what SQL data types are.

Data Elements are internal to DataStage. I like to think of them as "luggage tags" for data. For example, the SQL data type might be Char(10). What is it? A telephone number? A tax file number? A product code?

Data Elements allow you to create your own definitions, and to document the business rules associated with each. For example, it is meaningful to parse the area code from a telephone number, but not from a tax file number.

Consider a Data Element called Revenue. Performing a Usage Analysis on this Data Element can rapidly answer the question "which jobs process revenue?".
IBM Software Services Group
Any contribution to this forum is my own opinion and does not necessarily reflect any position that IBM may hold.
fyaqq
Participant
Posts: 43
Joined: Thu Aug 31, 2006 5:05 pm

Post by fyaqq »

Thanks for your reply.
I am just a little confused with the data element part.
Is there any scenario that you need to explicitly define the data element type
in order for something to work?
kumar_s
Charter Member
Charter Member
Posts: 5245
Joined: Thu Jun 16, 2005 11:00 pm

Post by kumar_s »

It is a 'nice to have' object. You need to build data elements using the existing standard, datatypes only. By creating this, making more understandalble format. You can built using basing data types as well.
Impossible doesn't mean 'it is not possible' actually means... 'NOBODY HAS DONE IT SO FAR'
trobinson
Participant
Posts: 208
Joined: Thu Apr 11, 2002 6:02 am
Location: Saint Louis
Contact:

Post by trobinson »

The MQSeries Stage might give you an argument on whether some data elements are "nice to have". I believe there are some internal data elements of this stage that would make them mandatory. Are there others?
Post Reply