Compilation errors

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
sdfasih
Participant
Posts: 39
Joined: Wed May 24, 2006 7:22 pm

Compilation errors

Post by sdfasih »

Hi,
Iam trying to load a fact table. One of the transformation rule states that
I do a look up on two tables which are other than the "source" and pull out
field(SID) and load it in the fact table(without any lookup from the source).
For that I did a lookup on those two tables and pulled out a field and loaded into a
hash file and linked it with the transformer that is loading the fact table.But
the field(SID) is shown red in the transformer and giving me compilation errors.
can anybody suggest a way to tackle this problem.
Thanx.
narasimha
Charter Member
Charter Member
Posts: 1236
Joined: Fri Oct 22, 2004 8:59 am
Location: Staten Island, NY

Post by narasimha »

Have you linked the Key coulmn in your lookup to your source compare column?

Give more information about the error if this does not help.
Narasimha Kade

Finding answers is simple, all you need to do is come up with the correct questions.
sdfasih
Participant
Posts: 39
Joined: Wed May 24, 2006 7:22 pm

Re: Compilation errors

Post by sdfasih »

sdfasih wrote:Hi,
Iam trying to load a fact table. One of the transformation rule states that
I do a look up on two tables which are other than the "source" and pull out
field(SID) and load it in the fact table(without any lookup from the source).
For that I did a lookup on those two tables and pulled out a field and loaded into a
hash file and linked it with the transformer that is loading the fact table.But
the field(SID) is shown red in the transformer and giving me compilation errors.
can anybody suggest a way to tackle this problem.
Thanx.
There is no lookup with the main source table thats the problem.
Krazykoolrohit
Charter Member
Charter Member
Posts: 560
Joined: Wed Jul 13, 2005 5:36 am
Location: Ohio

Post by Krazykoolrohit »

delete that row from the transformer and drag it again.

right click and "do validation" check what error it gives.
urshit_1983
Participant
Posts: 73
Joined: Wed Jun 28, 2006 3:27 pm
Location: NJ

Post by urshit_1983 »

You said without doing lookup with the source ???

And why you need to build a hashed file if the table itself can be used for the lookup.. More over I guess you are doing the same thing by building the hashed file and then using it as look up ..

So Correct me if i m wrong :

your job is like -

SourceTable->Transformer->OutputTable
^ ^
| |

Table1 Table2

Table1 and Table2 are for lookups correct ??

If this is so no need to build the hashed file. Unless its a huge data. Or you can build it in other job and take the hashed file in your this job. Its coming red because you must have set the Primary key and not linked with the source.

Hope this if fine exp.
"Nobody is expert in Everything,
But Everybody is expert in Something."
urshit_1983
Participant
Posts: 73
Joined: Wed Jun 28, 2006 3:27 pm
Location: NJ

Post by urshit_1983 »

Sorry, due to formatting the Table1 and Table2 have moved to Source instead to Transformer.
"Nobody is expert in Everything,
But Everybody is expert in Something."
Post Reply